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?
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
--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list