Page 1 of 1

Permissions nightmare

Posted: 16 Jan 2013 18:58
by Desertsweeper
OK so I have my new box up and running. I copied a whole bunch of data over from my old box using RSYNC - I thought I was being clever as it seemed the fastest way to copy the 3,5 TB of data over. And it was fast. To keep things even I did a factory default. Then I set up a CIFS share to the mounted RAID5 array. Now when I try to access the share via Windows I can get into some of the data but not others. Even if I set the share to SMB2 with local user and authenticate as admin the problem persists. If i go into ADVANCED>FILE EDITOR I can see all the files and move copy to my hearts content. But only some of the files and directories are accessible via the network share. If I change the permissions by ticking all the boxes in the GUI ADVANCED FILE MANAGER on a given directory or file then I can access it via network share. Nightmare - thousands of files and directories... What I am trying to achieve is anonymous access for any client of the whole share. Is there a simple way to just reset all permissions to full rights?

Re: Permissions nightmare

Posted: 16 Jan 2013 19:08
by BeNooL
There are several permissions to set: allow the samba service to read those files and then configure samba to allow anonymous access.

You can set the permissions on files and folders recursively via command line (either from local console or via an SSH shell) with the chown command.
Another way, is again connecting to the NAS via SSH with WinSCP and set permissions with help of its GUI.

Re: Permissions nightmare

Posted: 16 Jan 2013 19:24
by Desertsweeper
OK so I installed WinSCP and chose my top-level share. The only groups I can select are "admin" and "Wheel" and owner is only "root". As I want anonymous unauthenticated access from any network host which group do I choose? I started it off with "wheel" and "root" but it looks like it will take days to reset...just want to make sure I have the right choice up front?

OK sorry it finished real quick (even though it looked like it was going very slooowly...all files and folders now accessible! Many thanks!

Re: Permissions nightmare

Posted: 17 Jan 2013 16:35
by armandh
I booted up a Linux partition on the client computer and used it to move files to the NAS
It did so without all the windows permission issues and problems I was having.

Re: Permissions nightmare

Posted: 07 Sep 2013 21:31
by bola_dor
I have passed thru something like this after coping a lot of files and Folders that kept permissions (restrictions) not to be modified and solved easily so I ´ll share this to help any one reaching this one year old post now ..
Disclaimer: I am a really noob at linux, unix and networking so if this is your own situation perhaps this will help but I am sure that there must be another more secure way to do this.
so:

At Advanced / Command menu type
$ chmod -R 0777 /mnt/ (optionally copy full path to one mounting point)

and Execute

THIS WILL SET ALL PERMISSIONS TO EVERY ONE TO READ WRITE EXECUTE ON ALL MOUNTED DEVICES
may be is not an optimal solution for every one and may be insecure for others, but it will make things really easier (for every body, be careful)

And Next time be sure when shearing to keep at Services|CIFS/SMB|Share|Edit
Inherit permissions Enable permission inheritance UNCHECKED,, or anything you copy from windows will remain hard to modify

any suggestions are welcome but have in mind that as less than a newbie I may don{t understand a word of what you say
(I spent a day trying to connect with winssp,, only could by FTP but guess what,, I haven´t permission to change permissions, I have them now!)