[NTLUG:Discuss] NFS Resolution

Greg Edwards greg at nas-inet.com
Fri Sep 7 20:44:09 CDT 2001


Patrick Parks wrote:
> 
>    Part 1.1    Type: Plain Text (text/plain)
>            Encoding: 7bit

Patrick,

The mode of a newly created file is controlled by the users umask
setting, see bash man or info page.  The ownership and group assigned to
the file are dependent on the owner and group of the directory and the
suid and guid (sticky) bit setting.  See chmod man or info pages.

The easiest way to get where you want to be is to create a directory
that has rwxrwsr-x (chmod u=rwx,g=rws,o=rx testdir).  Set the group to
one that all members you wish to allow to share are a part of (chgrp
testgrp testdir).  You then need your users to change their umask to
002.  This will cause their files to be created rwxrwxr-x.  Most systems
use 022 as default which gives you rwxr-xr-x on new files.  Now your
users will be able to save a file in the testdir which will give rwx to
the group that the directory is assigned to.

Good luck.

-- 
Greg Edwards
New Age Software, Inc.
http://www.nas-inet.com



More information about the Discuss mailing list