On Thursday 14 August 2003 11:41, Robert Williams wrote:Thanks Mike and Sean. That did it.
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?
The following sequence works for me. What if anything do you see different from what you're doing?
As root: -------- useradd user1 useradd user2 mkdir database chmod 775 database chgrp dbuser database chmod g+s database ll -d database
drwxrwsr-x 2 root dbuser 4096 Aug 14 12:12 database
groupadd dbuser usermod -G dbuser user1 usermod -G dbuser user2 logout as root ------------------------
login as user1:
----------
umask 0002
cd database echo hello > test.txt ---------------------
login as user2 : ----------- umask 0002
cd database echo there >> test.txt
cat test.txt hello there
ll test.txt
-rw-rw-r-- 1 user1 dbuser 1266 Aug 14 12:28 test.txt --------------
Regards, Mike Klinke
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?
Robbie
-- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list