On Thursday 19 June 2003 17:06, Jianping Zhu wrote: > On Thu, Jun 19, 2003 at 04:41:34PM +0100, MKlinke wrote: > > On Thursday 19 June 2003 15:50, Jianping Zhu wrote: > > > i have users u1 u2 u3 > > > > > > I there home directory, u1 u2 u3 have default umask 022 > > > > > > I have a directory d1, and u1 u2 u3 need to have r/w access to > > > d1, i put u1 u2 u3 in group g1 and use "chmod g+s d1", now all > > > file creat by u1 u2 u3 will belong to g1. but when u1 put some > > > file in d1, because his umask is 022, the file has no group write > > > access. but i want u2 u3 also have write access to the file too. > > > how can i achieve this goal? > > > > > > Thanks > > > > This sequence works for me. I think it matches your scenario. Be > > sure you give the group write permission to the directory. > > > > ---------------- > > groupadd testgroup > > useradd uone -p passwd -G testgroup > > useradd utwo -p passwd -G testgroup > > useradd uthree -p passwd -G testgroup > > cd /usr > > mkdir testdir > > chmod 775 testdir > > chmod g+s testdir > > > > login uone > > cd /usr/testdir > > touch testfile.txt > > > > login utwo > > cd /usr/testdir > > vi testfile.txt -change - save > > > > login uthree > > cd /usr/testdir > > vi testfile.txt - change -save > > > > > > Regards, Mike Klinke > > Thanks for your reply!! > > What is the default umask for uone utwo and uthree in your case. > > Jianping > > > -- > > redhat-list mailing list > > unsubscribe > > mailto:[EMAIL PROTECTED] > > https://www.redhat.com/mailman/listinfo/redhat-list
My system (RH9) is using 002 for non-root users. You can find the default setting in /etc/bashrc. Regards, Mike Klinke -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list