Page 1 of 1
Not allowed to delete folders from within windows

Posted:
Sun Jan 11, 2015 3:37 pm
by Flight777
Hi,
I've a problem for some time now which I can't solve and keeps nagging. I hope somebody might be able to assist me:
Some weeks ago I was cleaning the movie folder on my NAS, removing some duplicate or movies I don't want anymore. Most of the folders and files I could delete from within Windows (as a network share) without a problem, however a few folders give me the following error:
"You require permission from Unix User\nobody to make changes to this file"
I would highly appreciate it if somebody could get me on track to change these permissions so I can delete the files.
Thanks!
Rob
Re: Not allowed to delete folders from within windows

Posted:
Sun Jan 11, 2015 3:56 pm
by Jocko
Hi Flight777,
I assume that you get this issue because either you copied some files with WinScp or it is very old files downloaded with old transmissionCli version and in this case you don't have enough permissions to delete them.
The easy way to restore them it is in Putty do
- Code: Select all
chmod -R ag+w /share/1000/yoursharename
or use the backup menu (select the share as destination and click on "Restore permissions on the selected folder")
Re: Not allowed to delete folders from within windows

Posted:
Wed Feb 11, 2015 7:18 am
by firwareslut
I always run a cronjob to reset permissions every few minutes.
Re: Not allowed to delete folders from within windows

Posted:
Wed Feb 11, 2015 9:25 am
by Jocko
Hi firwareslut,
I used for a long time 3 nas with fvdw-sl and I don't need to do this regularly :
With samba server, the default permissions is 666 and the owner nobody: => all modified files from a samba shares can be deleted via this server.
Same thing with WebDav.
With httrack, wget menu, torrentclient, mldonkey the owner is root but file permissions are also 666 => so you can fully handle the modified files from these server.
But with these servers, you may not have full permissions :
- with FTP server, backup feature, the transferred files from a FAT32 partition : owner: root and permissions: 644(files) and 755(folders).
- with NFS, FTP, backup feature, from a linux partitions where the file permissions are not 666 and the owner is not nobody.
- with SSH server, umask is 022 and the owner is root.
So only with these last cases require to do your cron job.
Re: Not allowed to delete folders from within windows

Posted:
Fri Feb 13, 2015 6:44 am
by firwareslut
I have always found permissions to be a bit of a pain in the ass. Especially since I use Windows on one machine and Ubuntu on another.
The reason for the cronjob isn't §due to the NAS services though. I run an rsync job to sync music from my Ubuntu machine to the NAS and use the sftp connection to login to the NAS and transfer files. I haven't tried to set up an rsync server. Seems complicated for my needs when a single line command from the client machine does what I want quickly :) I should probably just update my script to change ownership and permissions remotely.
Re: Not allowed to delete folders from within windows

Posted:
Fri Feb 13, 2015 8:18 am
by uelpenich
I haven't tried to set up an rsync server. Seems complicated for my needs when a single line command from the client machine does what I want quickly
I wrote a HowTo set up rsync by command line. Yes it is a little bit complicated. Take care of the access rights of the password file. For security reasons rsync only accepts password files with limited access rights (“password file must not be other-accessible”). Look at the manpage for details.
PS: see also
http://plugout.net/viewtopic.php?f=7&t=1470
Re: Not allowed to delete folders from within windows

Posted:
Wed Feb 18, 2015 8:30 am
by firwareslut
That rsync document was very interesting. I never understood the advantages of it until I read your tutorial through. Thanks!