How can you reset permissions across NAS?

Questions about using NAS on Mac OS.
Post Reply
User avatar
avvidme
Know my way around
Posts: 185
Joined: Fri Jan 16, 2009 10:36 am
Contact:

How can you reset permissions across NAS?

Post by avvidme » Wed Jul 21, 2010 9:02 pm

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
_______________________________________________________________________
Checkout http://www.digitalgatehouse.com for more of my ramblings!

colorkite
Starting out
Posts: 12
Joined: Wed Jul 14, 2010 1:32 pm

Re: How can you reset permissions across NAS?

Post by colorkite » Fri Jul 23, 2010 11:00 am

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.

User avatar
schumaku
Guru
Posts: 43663
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
Contact:

Re: How can you reset permissions across NAS?

Post by schumaku » Fri Jul 23, 2010 3:45 pm

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.

User avatar
avvidme
Know my way around
Posts: 185
Joined: Fri Jan 16, 2009 10:36 am
Contact:

Re: How can you reset permissions across NAS?

Post by avvidme » Fri Jul 23, 2010 8:09 pm

Ah, very cool thanks!
_______________________________________________________________________
Checkout http://www.digitalgatehouse.com for more of my ramblings!

lanceuppercut47
Getting the hang of things
Posts: 55
Joined: Tue Jan 19, 2010 7:48 pm

Re: How can you reset permissions across NAS?

Post by lanceuppercut47 » Wed Sep 08, 2010 11:58 pm

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.

Post Reply

Return to “Mac OS”