Thunar overrides the user's umask
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Thunar File Manager |
In Progress
|
Unknown
|
|||
thunar (Ubuntu) |
Fix Released
|
Low
|
Lionel Le Folgoc | ||
Jaunty |
Won't Fix
|
Low
|
Unassigned | ||
Karmic |
Fix Released
|
Low
|
Lionel Le Folgoc |
Bug Description
Binary package hint: thunar
Thunar overrides user's umask when creating files and directories. For example, if my session-wide umask is 0002, as set by:
<pre>
/etc/X11/
--------
#!/bin/bash
umask 0002
--------
</pre>
Thunar still creates directories (right-click menu, create folder) with mode 0755 and files (right-click menu, create file, empty file) with mode 0644. This is incorrect behavior; the directory and file should be created with 0775 and 0664 respectively if the user's umask is 0002.
This causes major problems for shared sites, such as those using LTSP (for which Thunar is otherwise ideally suited), because users working in shared directories cannot work with each others' files. Thunar does not know what the user wants better than the user and the site admin do, and shouldn't pretend it does.
Thunar is: thunar 0.9.0-4ubuntu2 from Hardy (8.10)
Related branches
Changed in thunar: | |
status: | Unknown → In Progress |
Changed in thunar: | |
importance: | Undecided → Low |
status: | New → Triaged |
Expected, as illustrated by the shell's behaviour:
craig:~$ mkdir test
craig:~$ touch test/testf
craig:~$ find test -ls
3227979 4 drwxrwxr-x 2 craig users 4096 Jun 25 15:12 test
3227984 0 -rw-rw-r-- 1 craig users 0 Jun 25 15:12 test/testf
Actual results from Thunar:
craig:~$ find thunartest/ -ls thunartestfile
3228002 4 drwxr-xr-x 2 craig users 4096 Jun 25 15:14 thunartest/
3228003 0 -rw-r--r-- 1 craig users 0 Jun 25 15:14 thunartest/
Results after patch:
craig:~$ find thunartest/ -ls thunartestfile2
3228002 4 drwxrwxr-x 2 craig users 4096 Jun 25 15:14 thunartest2/
3228003 0 -rw-rw-r-- 1 craig users 0 Jun 25 15:14 thunartest2/
Patch attached.