LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-16-2005, 08:46 AM   #1
mvo
Member
 
Registered: Apr 2005
Location: Delhi, India
Distribution: Mostly Fedora
Posts: 42

Rep: Reputation: 15
umask difference between gnome and terminal


Hello,

maybe a real beginners question 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!
 
Old 09-16-2005, 11:05 AM   #2
draxen
Member
 
Registered: Nov 2004
Posts: 43

Rep: Reputation: 15
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
 
Old 09-17-2005, 01:39 PM   #3
mvo
Member
 
Registered: Apr 2005
Location: Delhi, India
Distribution: Mostly Fedora
Posts: 42

Original Poster
Rep: Reputation: 15
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??
 
Old 09-18-2005, 06:35 AM   #4
eddiebaby1023
Member
 
Registered: May 2005
Posts: 378

Rep: Reputation: 33
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.
 
Old 09-19-2005, 08:41 AM   #5
mvo
Member
 
Registered: Apr 2005
Location: Delhi, India
Distribution: Mostly Fedora
Posts: 42

Original Poster
Rep: Reputation: 15
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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing environment variable for gnome session from gnome-terminal pymehta Linux - Software 1 10-11-2005 05:19 PM
Alternative terminal to konsole & gnome-terminal Adony Linux - Software 3 10-08-2004 03:59 AM
What is the difference between Gnome and Dropline Gnome mikieboy Linux - Software 7 07-29-2004 11:52 AM
Difference between Gnome and Dropline-Gnome ?? Necronomicom Slackware 13 06-09-2004 11:16 PM
Difference between a console and a terminal vmniza Linux - General 1 02-29-2004 03:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration