LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   umask difference between gnome and terminal (https://www.linuxquestions.org/questions/linux-newbie-8/umask-difference-between-gnome-and-terminal-363921/)

mvo 09-16-2005 08:46 AM

umask difference between gnome and terminal
 
Hello,

maybe a real beginners question :rolleyes: but I just started experimenting with umask.
I changed the umask of a user to 0022 in the terminal. but I experience the following:

when i make a file in the terminal and in the file-browser with the same user, i get permissions 600 in the filebrowser and 644 in the terminal.

How is this difference possible? (i use gnome and FC4). Maybe important: if I change umask in the terminal, this does not seem to change the creation mask of the files created in the file-browser..

Hope someone can help me out, thanks!

draxen 09-16-2005 11:05 AM

setting umask manually only affects your shell session where you set it (eg. terminal). To make it permanent PER LOGIN, you need to put it in your .profile

mvo 09-17-2005 01:39 PM

Thank you,

in FC4 I did not find this .profile , but with /etc/profile I found /etc/bashrc and there one can set umask for any user as one likes.
but........ this umask setting works excellent in the terminal, but gnome desktop still has another umask as it creates very different permissions on new files...

how can I set for a user other default umask settings for files created in the gnome desktop??

eddiebaby1023 09-18-2005 06:35 AM

Quote:

when i make a file in the terminal and in the file-browser with the same user, i get permissions 600 in the filebrowser and 644 in the terminal.
This is nothing to do with your umask - it's to do with the mode the files are being created with. Your umask setting defines which permission bits will NEVER be set - which ones are set is a matter for the creator. If you create with a mode of 600, you'll end up with 600, if you create with a mode of 666 you'll end up with 644 - the 022 being masked off.

mvo 09-19-2005 08:41 AM

Quote:

it's to do with the mode the files are being created with.
how do I change the mode with which the files are being created then to ensure that every file created bij a certain user (in the Gnome desktop) gets permissions 775?


All times are GMT -5. The time now is 11:47 PM.