The officially official Devuan Forum!

You are not logged in.

#1 2026-07-15 12:25:45

vi.joe
Member
Registered: 2026-07-14
Posts: 3  

umask - Problems & Solution

new on Devuan Excalibur since end of June after some Years on Debian ... ;-)

and a funny Story setting my umask - long Story short:

1.) my old Approach

cat ~/.bashrc.d/set_umask

# ...
# umask 0077
# ...

works fine in Shell Context, but not in Desktop Context, e.g. for Dolphin

2.) ALL tried Solutions (/etc/login.defs, pam_umask.so etc.) DID NOT WORK - WHY - ANY IDEAS ?

3.) Finally, setting the desired umask in /etc/passwd WORKS:

sed -i 's/:\/home\/user:/umask=077:\/home\/user:/' /etc/passwd

Offline

#2 2026-09-30 20:58:09

kaiyel
Member
Registered: 2019-10-16
Posts: 36  

Re: umask - Problems & Solution

Did you try editing :

   /etc/pam.d/common-session
   /etc/pam.d/common-session-noninteractive

and update the "pam_umask.so" line to read :

   session  optional  pam_umask.so  usergroups umask=077

I believe the default UMASK settings for sessions has been moved out of /etc/login.defs and into pam.d settings.
--K

Offline

#3 Today 13:08:24

vi.joe
Member
Registered: 2026-07-14
Posts: 3  

Re: umask - Problems & Solution

thanks, added your suggestion to my config ;-)

Offline

Board footer