Page 1 of 1

How can you reset permissions across NAS?

Posted: Wed Jul 21, 2010 9:02 pm
by avvidme
With the AFP file permission issues (which have happened a few times across a few firmwares over the past year or so) - I have the need to reset file permissions across the entire NAS. I'm coming across files all over which I have to reset manually.

I have numerous shares, and about 4.5TB's of data. The Shares have a few different ACL's set on them.
Is there a method/script etc. I can run which will go across the entire NAS and reset the permissions to that they should be?
Easy way to do this other than manually?

Cheers

Re: How can you reset permissions across NAS?

Posted: Fri Jul 23, 2010 11:00 am
by colorkite
There is certainly a script that can be run to do this via ssh. My IT guy just did this the other day. However - i don't know any specifics but you should be able to Google search this function within Linux based servers and find a solution.

Re: How can you reset permissions across NAS?

Posted: Fri Jul 23, 2010 3:45 pm
by schumaku
If you have played with the file permissions, you can reset to the default NAS required values on a per-share base:

# set_volume_mode [sharename]

This is likely the most easy way, and does not bring anything into risk for non-U**x shell experienced users. Example:

[~] # set_volume_mode news
Volume: news
Path: /share/MD0_DATA/news
Set directory mode to 777 and file mode to 666

Enjoy,
-Kurt.

Re: How can you reset permissions across NAS?

Posted: Fri Jul 23, 2010 8:09 pm
by avvidme
Ah, very cool thanks!

Re: How can you reset permissions across NAS?

Posted: Wed Sep 08, 2010 11:58 pm
by lanceuppercut47
schumaku wrote:If you have played with the file permissions, you can reset to the default NAS required values on a per-share base:

# set_volume_mode [sharename]

This is likely the most easy way, and does not bring anything into risk for non-U**x shell experienced users. Example:

[~] # set_volume_mode news
Volume: news
Path: /share/MD0_DATA/news
Set directory mode to 777 and file mode to 666

Enjoy,
-Kurt.

will this fix my problem i'm getting (viewtopic.php?f=185&t=34252), basically i have files copied to the NAS using one admin account that i cant modify using another admin account and would like to reset permissions so that, if possible, both admin accounts can modify the files.

actually i'd like to do that globally so that anyone in the admin groups have read/write and the users only have write.

thanks.