ok exact process to reproduce

1. groupadd sharedtest     // create's the "sharedtest" group

1. cat /etc/group |grep sharedtest   // verifies it's been added ie output is 
>> sharedtest:x:552:

3. mkdir /home/sharedtest;chown root.sharedtest /home/sharedtest; ls -lad 
/home/sharedtest

>> output should look like 
drwxr-xr-x 2 root sharedtest 4096 Apr  8 15:43 /home/sharedtest

4. chmod g+s /home/sharedtest; ls -lad /home/sharedtest
drwxr-sr-x 2 root sharedtest 4096 Apr  8 15:43 /home/sharedtest

5. adduser testuser

6.  add testuser to group sharedtest

7. verify testuser is a member of sharedtest by doing a 
su testuser -
then typing groups

8. touch /home/testuser/testfile ;ls -la /home/testuser/testfile

9.  cp /home/testuser/testfile /home/sharedtest/; ls -la testfile

permissions should be testuser sharedtest 

then do the same as above with testfile2 ... this time "cp -a 
/testuser/testfile2 /home/sharedtest/

permissions should be testuser testuser

login using gdm to gnome as user testuser

now use Nautilus to drag a file called testfile3 from the home directory of 
testuser to /home/shared

The result,,, the same as a cp -a ... a stands for archive and is for backing 
up. .It is not the desirable default behaviour.


-- 
setgid not respected when copying into a directory
https://launchpad.net/malone/bugs/36647

--
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to