Bug 213316 - nautilus ignores umask
nautilus ignores umask
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: gnome-vfs (Show other bugs)
6
All Linux
medium Severity high
: ---
: ---
Assigned To: Alexander Larsson
http://bugzilla.gnome.org/show_bug.cg...
:
Depends On:
Blocks: 276041
  Show dependency treegraph
 
Reported: 2006-10-31 14:36 EST by Harald Jensås
Modified: 2008-02-04 01:13 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-02-04 01:13:17 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
This is the patch posted on the bugzilla.gnome (772 bytes, patch)
2006-10-31 14:36 EST, Harald Jensås
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
GNOME Desktop 327249 None None None Never

  None (edit)
Description Harald Jensås 2006-10-31 14:36:40 EST
Description of problem:

Files created with nautilus-2.16.0-5.fc6 does not get the correct permissions.
The global umask setting in /etc/bashrc is ignored.

Example:
---------------------------
$ ls -l
total 158
drwxrwsr-x   4 root   allusers  4096 Oct 31 18:42 shared-folder
$ cd shared-folder/
$ ls -l
total 0
-rw------- 1 harald allusers 0 Oct 31 18:40 create.empty.file.in.nautiilus
-rw-rw-r-- 1 harald allusers 1604 Oct 31 20:24 saved.with.gedit
-rw-rw-r-- 1 harald allusers 0 Oct 31 18:40 touched.file.in.bash
$ umask 
0002
---------------------------
With umask 002 all files should inherit the permissions of the parent folder.
And that is what happen when I create a file within a bash shell.
However, as you see in the example, when I create a file by <right click> -
<create document> - <empty file> it does not get the correct permissions. You
can also see that saving a file using gedit give the file the correct permissions.


Version-Release number of selected component (if applicable):
nautilus-2.16.0-5.fc6

How reproducible:

100 %

Steps to Reproduce:change the umask in /etc/bashrc to "umask=002" using vi.
1. create a folder $ mkdir /home/$user/test
2. change permission on test to $ chmod ug+rw test
3. create a file in /home/$user/test with touch, $ touch
/home/$user/test/file.created.with.touch
4. create a file using nautilus in /home/$user/test
5. run $ ls -l /home/$user/test
6. compare permissions of file.
  
Actual results:
$ ls -l
total 0
-rw------- 1 harald allusers 0 Oct 31 18:40 create.empty.file.in.nautiilus
-rw-rw-r-- 1 harald allusers 1604 Oct 31 20:24 saved.with.gedit
-rw-rw-r-- 1 harald allusers 0 Oct 31 18:40 touched.file.in.bash

Expected results:
-rw-rw-r-- 1 harald allusers 0 Oct 31 18:40 create.empty.file.in.nautiilus
-rw-rw-r-- 1 harald allusers 1604 Oct 31 20:24 saved.with.gedit
-rw-rw-r-- 1 harald allusers 0 Oct 31 18:40 touched.file.in.bash

Additional info:
This bug is described here:
http://bugzilla.gnome.org/show_bug.cgi?id=327249

A patch is already posted here: 
http://bugzilla.gnome.org/attachment.cgi?id=74009&action=view
Comment 1 Harald Jensås 2006-10-31 14:36:40 EST
Created attachment 139892 [details]
This is the patch posted on the bugzilla.gnome
Comment 2 Alexander Larsson 2006-11-20 12:21:35 EST
That patch is not really right, see my comment upstream.
Comment 3 Harald Jensås 2006-12-25 18:20:32 EST
Alexabder, did you review the new patch posten on
http://bugzilla.gnome.org/show_bug.cgi?id=327249 ?
Comment 4 Alexander Larsson 2007-01-11 06:38:43 EST
Commited upstream, will be in next 2.17.x release imported
Comment 5 Matthias Clasen 2008-02-04 01:13:17 EST
Fixed a long time ago

Note You need to log in before you can comment on or make changes to this bug.