Hi: [Suse 9.1] see below for a thread discussing a previous attempt at fixing this. Basically I have set my umask to 0002 in /etc/profile.local. When users create files at the terminal, they get the expected perms, rw-rw-r--. But in Konqueror this doesn't work. Instead I get rw-r--r--. In response to the suggestions below from the previous thread here are my results. This doesn't seem to be the problem: ngong:/home/user1 # cat /etc/pam.d/xdm #%PAM-1.0 [edit] session required pam_limits.so ngong:/home/user1 # cat /etc/pam.d/login #%PAM-1.0 [edit] session required pam_limits.so So the question remains: What controls the umask or default permissions for file creation in Konqueror, and how can I change it? Thanks for input. ------------------------------------------ "[SLE] Konqueror doesn't respect umask?" Are you logging in via a Xterm when you test the shell or a terminal like SSH? I have seen SuSE (SLES9 anyway) do this with ulimits. Check your /etc/pam.d/login file for the line "session required pam_limits.so" this is what is reading your config files. Make sure the same line appears in your /etc/pam.d/xdm file or you will only get the settings via terminal logins.. On Mon, 2004-09-06 at 21:30, Chris Carlen wrote:
Hi:
Suse 9.1
I put my users into individual private groups, then made the umask 002 in /etc/profile.local.
Now when I create a file in a shell I get what I expect:
user1@ngong:~/misc/new1> touch file1 user1@ngong:~/misc/new1> l total 0 drwxrwxr-x 2 user1 user1g 72 2004-09-06 20:27 ./ drwxr-xr-x 4 user1 user1g 248 2004-09-06 20:13 ../ -rw-rw-r-- 1 user1 user1g 0 2004-09-06 20:27 file1
But when I create a file with Konqueror, I get the result that would happen if umask=022:
user1@ngong:~/misc/new1> l total 4 drwxrwxr-x 2 user1 user1g 104 2004-09-06 20:28 ./ drwxr-xr-x 4 user1 user1g 248 2004-09-06 20:13 ../ -rw-rw-r-- 1 user1 user1g 0 2004-09-06 20:27 file1 -rw-r--r-- 1 user1 user1g 2 2004-09-06 20:28 Text File
Where the last file was created by Konqueror.
How to make Konqueror use my umask?
Thanks.
-- _____________________ Christopher R. Carlen crobc@bogus-remove-me.sbcglobal.net SuSE 9.1 Linux 2.6.5
Op maandag 9 mei 2005 22:13, schreef Chris Carlen:
[Suse 9.1]
see below for a thread discussing a previous attempt at fixing this. Basically I have set my umask to 0002 in /etc/profile.local. When users create files at the terminal, they get the expected perms, rw-rw-r--. But in Konqueror this doesn't work. Instead I get rw-r--r--.
In response to the suggestions below from the previous thread here are my results. This doesn't seem to be the problem:
Does this help: http://bugs.kde.org/show_bug.cgi?id=43172 I think you're not looking at the problem from the right angle. KDE doesn't _reset_ the umask. The problem is more that your bashrc/profile/... file that sets the umask isn't read ("sourced") at KDE startup. This is the typical "kdm should read the profile" kind of request, which I'm not the best person to answer (check with Ossi, kdm's author, I'm sure he knows why it's that way). If I'm correct, then when you use "startx" the umask is correct (since in that case it will have been set by the shell launching startx). -- Richard Bos Without a home the journey is endless
participants (2)
-
Chris Carlen
-
Richard Bos