GNOME Bugzilla – Bug 167005
Permissions vary between file mode creation
Last modified: 2005-02-11 21:14:00 UTC
Please describe the problem: Depending on the way to create files (through Nautilus, creating a blank file in a folder) or through an Xterm (touch file, in the same place, with the same user), the permissions on both files differ. This is very disturbing, anoying, weird and practically, what should I do to obtain a proper functionning? Steps to reproduce: 1. create a group (through the "users and groups" tool) 2. include your user in this group (my user is "moi", my group is called "famille" ; "famille" is not my primary group) I included the line "umask 002" in moi's .bash_profile 3. created a folder named "famille" in the /home directoy. Set up its owner:group as moi:famille. Set up its permissions as drwxrws--- 4. create a symbolic link from /home/moi to /home/famille/ 5. open an xterm (Terminal GNOME 2.8.2) under moi's out-of-the-box Debian testing Gnome session, then: cd famille touch toto1 6. open Nautilus in the same session, then: - double click on the "famille" symbolic link => I reach /home/famille/ - right-clic in this folder, then "create a document / empty document" and rename it "toto2" Actual results: The permissions and groups of both files are not identical! I display them in the terminal, as follows: ~/famille$ ls -al toto* -rw-r--r-- 1 moi famille 0 2005-02-10 23:48 toto1 -rw------- 1 moi moi 0 2005-02-10 23:48 toto2 Expected results: ~/famille$ ls -al toto* -rw-r--r-- 1 moi famille 0 2005-02-10 23:48 toto1 -rw-r--r-- 1 moi famille 0 2005-02-10 23:48 toto2 Does this happen every time? Yes, not only on my machine but on another one too. Mine is a pure up-to-date Debian testing machine, the other one does not belong to me and is a Debian with a testing / unstable mix, I am not its administrator. Other information: Folder creation works ok: same result with both Nautilus and shell creation methods: drwxr-sr-x 2 jbb famille 4096 2005-02-11 00:21 dir1 drwxr-sr-x 2 jbb famille 4096 2005-02-11 00:24 dir2 Where does this behaviour while creating file come from? How do I do to get rid dof it ? Pratically, this is a pain. Furthermore, it deeply disturbs me.
Argh. the owner of the two folders dir1 and dir2 are not "moi", but what I describe is correct: same results with my classical "moi" user.
If I read well bug #140876, mine is a duplicate => I do tag it accordingly. So this was already present in 2.6 and this is still true in 2.8. *** This bug has been marked as a duplicate of 140876 ***