Permissions (umask) Issue on Debian 10 - Buster

If none of the more specific forums is the right place to ask

Permissions (umask) Issue on Debian 10 - Buster

Postby c64whiz » 2019-08-23 15:28

Hello,

Any application I run (Firefox, Emacs, LibreOffice, etc.) from the XFCE menu system, new files are always created with 0644 permissions (indicative of a 022 umask). If I create file manually (touch) or launch the application by hand on the command line, saved files have to appropriate permissions (0600 due to the 077 umask).

I have my umask set to 077 in my .bashrc, .profile, and in .bash_profile (tried with and without this one). However, when I launch an application via XFCE, any file created has permissions set by a 022 umask. I found a 022 setting in /etc/login.defs and /etc/skel/.profile. I don't believe the "skel" version is used except when a user is created with useradd, so I only changed the /etc/login.defs umask to 077. Logged out and back in...problem still exists.

It appears my initial login (via GUI at least) umask is not being used. How do I fix this?

--C64
c64whiz
 
Posts: 13
Joined: 2015-06-20 03:00

Re: Permissions (umask) Issue on Debian 10 - Buster

Postby ruwolf » 2019-08-24 13:29

In my opinion in ~/.config/xfce4/xinitrc ( or in /etc/xdg/xfce4/xinitrc ): manpages.debian.org: startxfce4
User avatar
ruwolf
 
Posts: 392
Joined: 2008-02-18 05:04
Location: Slovakia, Banovce nad Bebravou, Matice slovenskej 1260/4-7

[SOLVED] Re: Permissions (umask) Issue on Debian 10 - Buster

Postby c64whiz » 2019-08-25 16:34

For others reading this, READ THE LINK @ruwolf posted! Don't just put umask 077 in a new file (I didn't have a file in my .config directory).

SOLUTION: this worked. Copy the system /etc/xdg/xfce4/xinitrc to ~/.config/xfce4/xinitrc. Then I added umask 077 at the top of the file just beneath the #! line.

Honestly, this is so bizarre. Never in my several years of Debian have I had to do this. In fact, Debian 8 had me not using a ~/.xinitrc at all to get things working. Ok, whatever, things change. Thanks @ruwolf for the tip.

--C64
c64whiz
 
Posts: 13
Joined: 2015-06-20 03:00


Return to General Questions

Who is online

Users browsing this forum: No registered users and 13 guests

fashionable