Setting file permissions
Dylan
dylan at dylan.me.uk
Sat Jun 29 14:21:09 BST 2002
OK, I put the umask 007 in the ~/.profile for a relevant user. Putting it in
/etc/profile would change it for all users which isn't what I want!
It still doesn't affect KDE, only a shell action. That is, typing 'touch test'
in a console creates a file with rw-rw---- (as desired), but kde still gives
rw-r--r-- (not desired)
So how do I get this to affect KDE on a per user basis?
Dylan
On Saturday 29 June 2002 08:49, James Richard Tyrer wrote:
> Dylan wrote:
> > How can I set konqueror to give default file permissions of rwxrwx---
> > instead of rwxr-xr-x?
> >
> > I've tried setting umask in the login script (bashrc) but no luck. Which
> > script do I need to use for each user?
>
> It isn't in normally in "bashrc", it is in: "/etc/profile" on my system.
>
> --------------------------------
>
> if [ `id -gn` = `id -un` -a `id -u` -gt 14 ]; then
> umask 002
> else
> umask 022
> fi
>
> --------------------------------
>
> The first one is for 'root' and the second is for users' accounts.
>
> Change it to 007.
>
> Then, you need to make sure that "profile" ie run. And this may be your
> only problem that it isn't being run.
>
> The "Xsession" script must be a login script. Change the first line to:
>
> #!/bin/bash --login
___________________________________________________
This message is from the kde mailing list.
Account management: http://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.
More information about the kde
mailing list