On Thu, 2003-08-14 at 13:25, Robert Williams wrote:
> MKlinke wrote:
> 
> >On Thursday 14 August 2003 11:41, Robert Williams wrote:
> >  
> >
> >>I have created a directory that is shared using 'owner.group' access
> >>on a directory.  rwilliams.mygroup is set on database directory. 
> >>Since Redhat uses rwilliams.rwilliams for the user/group as default,
> >>it is causing me some trouble. When a user creates a file under
> >>/databases, they are the only one that can change or delete the file.
> >> I tried chmod g+s on /database, but that does not work.
> >>
> >>Any ideas?
> >>    
> >>
> >  
> >
> Thanks Mike and Sean.  That did it. 
> 
> I am running RH 9 and under /etc/bashrc is:
> if [ "`id -gn`" = "`id -un`" -a `id -u` -gt 99 ]; then
>     umask 002
> else
>     umask 022
> fi
> 
> New users are added starting at 500 uid, so they are set to umask 022, 
> not 002.  I guess it is set for security reasons.  So I need to add a 
> new umask to everyone's .bashrc file, or is it safe to just change 
> /etc/bashrc?
> 

It is the other way around.

501 is greater than 99 so the test -gt 99 should return true and then
the umask 02 command should be run.

if this is not happening it is something else with the ids.


Bret 


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to