You are not logged in.

#1 2012-06-30 14:50:57

siriusb
Member
Registered: 2010-01-01
Posts: 424

[solved] Thunar doesn't respect umask when creating files/folders

Having this permissions:

$ umask 
0007

When creating files / dirs in a terminal the new ones will get the correct permissions. However when doing the same in Thunar (checked with pcmanfm, too) the files / dirs get different permissions:

-rw-rw---- 1 nap users    0 Jun 30 16:31 new2 - cli
-rw-r--r-- 1 nap users    0 Jun 30 16:31 New Empty File - thunar
drwxrwx--- 2 nap users 4,0K Jun 30 16:32 dir-cli
drwxr-xr-x 2 nap users 4,0K Jun 30 16:32 dir-thunar

Shouldn't applications respect the user's umask settings? Is it a bug or a feature?

Last edited by siriusb (2012-07-01 10:12:23)

Offline

#2 2012-07-01 06:38:25

iTwenty
Member
From: India
Registered: 2010-10-24
Posts: 63
Website

Re: [solved] Thunar doesn't respect umask when creating files/folders

I think GUI apps will follow the umask specified in /etc/profile. Try changing that?


“Twenty years from now you will be more disappointed by the things that you didn't do than by the ones you did do. So throw off the bowlines. Sail away from the safe harbor. Catch the trade winds in your sails. Explore. Dream. Discover.” - Mark Twain

Offline

#3 2012-07-01 07:01:33

siriusb
Member
Registered: 2010-01-01
Posts: 424

Re: [solved] Thunar doesn't respect umask when creating files/folders

Thanks for your reply.
I don't want to change the system-wide setting only the local one. But not allowed to override settings locally would be ridiculous, wouldn't it?

Offline

#4 2012-07-01 07:28:56

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [solved] Thunar doesn't respect umask when creating files/folders

Have a look at this BR.


Burninate!

Offline

#5 2012-07-01 10:00:22

siriusb
Member
Registered: 2010-01-01
Posts: 424

Re: [solved] Thunar doesn't respect umask when creating files/folders

Thanks, very useful link.
Now I understand why it works this way. However I'm wondering whether putting umask to ~/.xprofile would work.
Or in .xinitrc before the line that starts WM. I'll try.

Update:
Gcool thanks again.
Putting umask into xprofile works exactly as I need it to work!

Last edited by siriusb (2012-07-01 10:12:04)

Offline

Board footer

Powered by FluxBB