On Thu, Feb 12, 2004 at 01:24:49PM +0200, Hans du Plooy wrote:
> Just a general permission queston.  I have a directory that is world 
> writeable.  When someone writes something to this directory, it gets 
> permissions -rw------- for the user who wrote it.  So no one else can read 
> it.  The idea is that the contents of this directory is world readable and 
> writeable, or at least readable by the owner of the directory.
> 
> How can I set the directory permissions so that files will always be created 
> at lease a+rw or that it is set to belong to the owner of the directory?

You can't. The reason why newly created files are mode 600 is that the
user creating them has a umask of 077 (perhaps due to excess paranoia).
Their umask must be set to something at least as permissive as 022 if
other people are to be able to read the files they create.

Also, the owner of a directory has no special status as far as reading a
file in that directory goes, but you may want to read up on setgid
directories.

-- 
Colin Watson                                  [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to