Not allowed to delete folders from within windows

Not allowed to delete folders from within windows

Postby Flight777 » Sun Jan 11, 2015 3:37 pm

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
Flight777
Donator VIP
Donator VIP
 
Posts: 22
Joined: Fri Oct 28, 2011 1:07 pm
Location: The Netherlands

Re: Not allowed to delete folders from within windows

Postby Jocko » Sun Jan 11, 2015 3:56 pm

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")
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Not allowed to delete folders from within windows

Postby firwareslut » Wed Feb 11, 2015 7:18 am

I always run a cronjob to reset permissions every few minutes.
firwareslut
Donator VIP
Donator VIP
 
Posts: 202
Joined: Thu Oct 06, 2011 11:53 am

Re: Not allowed to delete folders from within windows

Postby Jocko » Wed Feb 11, 2015 9:25 am

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.
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Not allowed to delete folders from within windows

Postby firwareslut » Fri Feb 13, 2015 6:44 am

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.
firwareslut
Donator VIP
Donator VIP
 
Posts: 202
Joined: Thu Oct 06, 2011 11:53 am

Re: Not allowed to delete folders from within windows

Postby uelpenich » Fri Feb 13, 2015 8:18 am

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
You do not have the required permissions to view the files attached to this post.
uelpenich
Donator VIP
Donator VIP
 
Posts: 120
Joined: Sun Jun 12, 2011 4:45 pm
Location: Cologne, Germany

Re: Not allowed to delete folders from within windows

Postby firwareslut » Wed Feb 18, 2015 8:30 am

That rsync document was very interesting. I never understood the advantages of it until I read your tutorial through. Thanks!
firwareslut
Donator VIP
Donator VIP
 
Posts: 202
Joined: Thu Oct 06, 2011 11:53 am


Return to Lacie Network Space vs2 and max version

Who is online

Users browsing this forum: No registered users and 5 guests