Hi John,

Thanks for the reply.  Here is exactly what happens when I try starting 
the filemanagers from a terminal window, as you suggested:

Under KDE,

[dave@aslan <mailto:carol@aslan> tmp]$ umask
007

[dave@aslan <mailto:carol@aslan> tmp]$ mkdir d1

[dave@aslan <mailto:carol@aslan> tmp]$ konqueror
[change to testing directory]
[Create New -> Directory "d2"]

[dave@aslan <mailto:carol@aslan> tmp]$ nautilus
[change to testing directory]
[New Folder "d3"]

$ ls -l
drwxrwx---    2 dave    dave          48 May 14 11:45 d1/
drwxr-xr-x    2 dave    dave          48 May 14 11:47 d2/
drwxrwx---    2 dave    dave          48 May 14 11:48 d3/

Konqueror did not set perms correctly, while nautilus did.  Now, under 
Gnome:


[dave@aslan <mailto:carol@aslan> tmp]$ umask
007

[dave@aslan <mailto:carol@aslan> tmp]$ mkdir d1

[dave@aslan <mailto:carol@aslan> tmp]$ konqueror
[change to testing directory]
[Create New -> Directory "d2"]

[dave@aslan <mailto:carol@aslan> tmp]$ nautilus
[change to testing directory]
[New Folder "d3"]

$ ls -l
drwxrwx---    2 dave    dave          48 May 14 11:45 d1/
drwxrwx---    2 dave    dave          48 May 14 11:47 d2/
drwxr-xr-x    2 dave    dave          48 May 14 11:48 d3/

Now the roles are reversed; konqueror sets perms correctly while 
nautilus does not.

This got me to thinking in a different direction; I added a umask 
command to /etc/X11/Xsession, which is the script used to setup the 
user's session after login using gdm.  This fixed the problem; the umask 
used by the filemanager corresponding to the running desktop was as set 
in Xsession.

This seems to mean that when the filemanager is running in its native 
desktop environment, it uses the umask present when the desktop is 
started, even if the particular instance of the filemanager is started 
from a command line with a different umask.  In foreign desktop 
environments, the umask is taken from the process that started the 
filemanager.

While hacking the Xsession script works for me and anyone else who is 
willing to modify a system script, it really seems suboptimal.  Isn't 
there another way to configure umasks in a more -- dare I say it -- user 
friendly manner? 

Cheers,

Dave Del Signore



John Wolford wrote:

> Let me understand this properly. Are you saying that you change your umaask
> setting in /etc/profile, and that setting is reflected in your shell, while at
> the same time Nautilus/Konqueror continue to behave as though the umask was
> 022?
> 
> Maybe you could try starting Konqueror from within the shell (which is behaving
> properly), and see if it behaves properly?
> 
> Sounds pretty weird :-)
> j
> 
> --- Dave Del Signore <[EMAIL PROTECTED]> wrote:
> 
>> Hi all,
>> 
>> How does one go about changing the umask used by Nautilus and/or Konqueror?
>> I've tried setting it in "/etc/profile"and other places, but nothing I do
>> seems to change it from the standard 022 mask, even though it works normally
>> for my shell.  I'm running Mandrake 8.0.
>> 
>> Thanks,
>> 
>> Dave Del Signore
>> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/




Reply via email to