On Wed, Dec 01, 1999 at 05:47:16PM -0600, Stephen Hargrove wrote:
| Okay, I've created a little problem on my system. I have a partition
| that is shared among several different offices, so I set the
| permissions as follows:
|
| chmod -R 1666 *
|
| This resulted in all of the directories and files having the following permissions:
|
| drw-rw-rwT directoryname
| -rw-rw-rwT filename
This is because you left of the "search" (== "x") permission.
With directories:
- "r" means read - you can ask the names of files on it
- "w" means write - you can rename or remove files in it
- "x" means search - you can examine (open, stat/ls) files in it;
note that you need "x" to use "w"
The capitalisation of the "T" in your ls output is the clue that "x" is missing
underneath it.
Might I suggest that you DO NOT give global access.
Instead, make a group containing the relevant people (eg "staff").
Then:
chgrp -R staff directoryname
chmod 775 $(find directoryname -type d -print)
(or 770 if the data are private)
to give rwx access to the group members
chmod g+s $(find directoryname -type d -print)
to set the setgid bit on the dirs, which causes new
files created in there to take their group ownership
from the dir (i.e. "staff", rather than the primary gid
of the user who created the file)
get your staff's umask to be 002 (or maybe 007 a la the 770 above)
while working in this area
--
Cameron Simpson, DoD#743 [EMAIL PROTECTED] http://www.zip.com.au/~cs/
I really don't like :-) symbols as well. I feel that if you can't see the pie
coming, you deserve whipped cream up your nose.
- [EMAIL PROTECTED] (rob derrick)
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.