Xfce Forum

Sub domains
 

You are not logged in.

#1 2008-04-29 00:14:37

martintxo
Member
Registered: 2008-04-28
Posts: 2

Default umask for Thunar

Hello:

I need to default to a diferent umask for make new dirs in thunar. I'm using Debian/stable, with xfce 4.3.99 and Thunar 0.4.0rc1. In this environment all new dirs maked with thunar comes with permissions: drwxr-xr-x (umask 022) and I need to change it to drwxrwxr-x per dafault (umask 002). I test the same in a Debian/testing box, and I get the same :-/.

For accomplish this problem, I try some diferent ways:

- Set umask 002 in ~/.bash_profile. This only works for the X-shells.
- Change the default umask in /etc/profile and in /etc/login.def. No works for thunar.
- Use libpam-umask as said in /etc/login.def. No works, but maybe I don't understand well how  it works :-?.
- Tray to set umask 002 in: /usr/bin/startx, /usr/bin/startxfce4, ~/.config/xfce4/xinitrc ...

So, now I don't know how much can I try. There is some relation betwen my problem and Bug 3532 - Thunar mask restrictions on group and other (http://bugzilla.xfce.org/show_bug.cgi?id=3532)? (I don't understand well this one).

There is anybody that have change the default umask in thunar?. What's the trick?. Thanks in advance. Excuse my bad english. Greetings. Martintxo.

Offline

#2 2008-10-23 17:51:03

martintxo
Member
Registered: 2008-04-28
Posts: 2

Re: Default umask for Thunar

Offline

#3 2024-04-11 04:27:01

cgelinek_radlogic
Member
Registered: 2024-04-11
Posts: 1

Re: Default umask for Thunar

I just had a similar issue on Debian 12, in which all desktop programs were started with the default 022 umask, instead of the one configured in /etc/login.defs.

To make PAM and systemd use the value from  /etc/login.defs, I had to add the following line to my /etc/pam.d/common-session file:

session optional pam_umask.so

...and after a reboot, my programs started from the XFCE session now use the umask configured in /etc/login.defs.

See https://unix.stackexchange.com/a/254923/55900 and https://unix.stackexchange.com/a/379329/55900 for more information.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.008 seconds, 8 queries executed - Memory usage: 522.77 KiB (Peak: 523.61 KiB) ]