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
How can you reset permissions across NAS?
- avvidme
- Know my way around
- Posts: 185
- Joined: Fri Jan 16, 2009 10:36 am
- Contact:
How can you reset permissions across NAS?
_______________________________________________________________________
Checkout http://www.digitalgatehouse.com for more of my ramblings!
Checkout http://www.digitalgatehouse.com for more of my ramblings!
-
- Starting out
- Posts: 12
- Joined: Wed Jul 14, 2010 1:32 pm
Re: How can you reset permissions across NAS?
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.
- schumaku
- Guru
- Posts: 43578
- Joined: Mon Jan 21, 2008 4:41 pm
- Location: Kloten (Zurich), Switzerland -- Skype: schumaku
- Contact:
Re: How can you reset permissions across NAS?
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.
# 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.
- avvidme
- Know my way around
- Posts: 185
- Joined: Fri Jan 16, 2009 10:36 am
- Contact:
Re: How can you reset permissions across NAS?
Ah, very cool thanks!
_______________________________________________________________________
Checkout http://www.digitalgatehouse.com for more of my ramblings!
Checkout http://www.digitalgatehouse.com for more of my ramblings!
-
- Getting the hang of things
- Posts: 55
- Joined: Tue Jan 19, 2010 7:48 pm
Re: How can you reset permissions across NAS?
will this fix my problem i'm getting (http://forum.qnap.com/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.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.
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.