This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

Permissions nightmare

New installs of XigmaNAS.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
Desertsweeper
Starter
Starter
Posts: 17
Joined: 12 Jul 2012 04:31
Location: Dubai, United Arab Emirates
Status: Offline

Permissions nightmare

Post 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?
----------------------------
2 x HP N36L MicroServers with 16GB ECC Ram
5 x 6TB WD RED Drives in Raid5

BeNooL
Status: Offline

Re: Permissions nightmare

Post 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.

Desertsweeper
Starter
Starter
Posts: 17
Joined: 12 Jul 2012 04:31
Location: Dubai, United Arab Emirates
Status: Offline

Re: Permissions nightmare

Post 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!
----------------------------
2 x HP N36L MicroServers with 16GB ECC Ram
5 x 6TB WD RED Drives in Raid5

armandh
Advanced User
Advanced User
Posts: 398
Joined: 23 Jun 2012 04:15
Location: St Louis County Missouri USA
Status: Offline

Re: Permissions nightmare

Post 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.
4 thread 3300 Mhz Intel i3, 1 TB ZFS mirror, available RAM 7.823 Gb, 64 bit NAS4Free 9.1.0.1 rev 573 [88 watts, 48 Mbps]
2 thread 1600 Mhz atom/ion, 1 TB ZFS mirror, available RAM 3.083 Gb, 64 bit NAS4Free-9.1.0.1 rev 573 [27 watts, 35 Mbps]
2 thread 3900 Mhz AMD A6-6400K, 2 TB ZFS Mirror, available RAM 7.557 Gb, 64 bit Nas4Free 9.3.0.2.1771 [89 watts, 68 Mbps]

bola_dor
NewUser
NewUser
Posts: 1
Joined: 02 Sep 2013 19:03
Status: Offline

Re: Permissions nightmare

Post 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!)

Post Reply

Return to “Install XigmaNAS”