|
|
#1 |
|
Prospect
Join Date: Mar 2004
Posts: 16
|
set automatically all files on a server-volume to 777
hi,
i want to set all files in a server-volume (mac os x server) to rwx for everyone (777). now, i'm doing it with cron: chmod -R 777 /Path_to_share/ is there a better way to do this? thanks!
__________________
greez. uli (the knecht) |
|
|
|
|
|
#2 |
|
League Commissioner
Join Date: Sep 2003
Location: Tokyo
Posts: 6,045
|
There is definitely a better way. Please explain what you are trying to accomplish in detail. I would guess that a bit of group management is what you need, not a blunt read/write/run by everyone.
|
|
|
|
|
|
#3 |
|
Prospect
Join Date: Mar 2004
Posts: 16
|
hi
10 macs, no shared user directories (ldap), connected via afp on the server. all users should have read/write/execute to every file on the server-volume. if another user shortly would handle with the file-server, there should be no limited access to anything. thanks,
__________________
greez. uli (the knecht) |
|
|
|
|
|
#4 | |||||||||||||||||||||||
|
Site Admin
Join Date: Jan 2002
Location: Montreal
Posts: 31,940
|
You don't want the "execute" bit turned on except for files that actually are executable (programs or shell scripts, not documents) and for folders/directories. Thus it would be much better to use: chmod -R ugo+rwX /Path_to_share/ (Read 'man chmod' for details, noting that it is an uppercase X in the command I recommended.) |
|||||||||||||||||||||||
|
|
|
|
|
#5 |
|
Prospect
Join Date: Mar 2004
Posts: 16
|
ok, i see, this works fine.
thank you!
__________________
greez. uli (the knecht) |
|
|
|
|
|
#6 |
|
Triple-A Player
Join Date: Jan 2005
Location: Rochester, NY
Posts: 123
|
You can change the umask to 000 so all files created will have permissions of 777.
|
|
|
|
|
|
#7 |
|
Hall of Famer
Join Date: Sep 2003
Location: Old Europe
Posts: 4,969
|
Note however that experience shows that one fine day someone will trash a whole bunch of somebody elses files by mistake.
That day you'll have to take the time to figure out a reasonable account and group management. And even if in your special situation the setup works, it is not Good Practice in usual contexts. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|