I have tired everything I can think of and have found on the net pretaining to this and it is not working. even this page
I create a partent dir, add a group name to the system, attach two users to that group. add the dir ownership to that dir. go in as one user, create a dir, su the other user and have that user try to edit the file of the first user, and it will not allow me to.
I need to have both or more then two users be able to do whatever within that dir and its subDir created by anyone that is attached to the group that owns it.
sudo find /run/media/bob/WD3TB/ftp-test/ -type d -exec chmod g+rw '{}' -R \;
sudo chgrp -R ftptest run/media/bob/WD3TB/ftp-test
[bob@voided1 bob2dir]$ mkdir bobDir
[bob@voided1 bob2dir]$ ls -la
total 12
drwxr-sr-x 3 bob ftptest 4096 Dec 6 18:25 .
drwxrws--- 4 bob ftptest 4096 Dec 6 18:18 ..
drwxr-sr-x 2 bob ftptest 4096 Dec 6 18:25 bobDir
[bob@voided1 bob2dir]$ su userx
Password:
userx@voided1.what/run/media/bob/WD3TB/ftp-test>> cd bob2dir
userx@voided1.what/run/media/bob/WD3TB/ftp-test/bob2dir>> touch userxFile
touch: cannot touch 'userxFile': Permission denied
userx@voided1.what/run/media/bob/WD3TB/ftp-test/bob2dir>> cat /etc/group
ftptest:x:1002:bob,userx
both users are attached to the ftptest group, that is attached as the group owner?
I can run the command and it works both are allowed to do whatever to each other, then when one or the other creates something new, dir, or file, then the other cannot touch it. permission denied.
I have even added each other to each others groups
bob:x:1001:userx,bob
users:x:100:bob,userx
and that does not work either.
how to give a group permissions to rwx at all times so ones that are attached to it can rwx everything within that dir owned by the group no matter when or who creates something , dir, or file. ??? what to do?