LinuxQuestions.org
Review your favorite Linux distribution.
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 04-14-2010, 10:28 AM   #1
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 648

Rep: Reputation: 45
Concept of umask ?


Hi,
I am using Red Hat Linux 4 .There are some few questions in my mind related to umask. I want to know that is the default file and directory permissions ?

2- When we use umask (022) command in terminal. and create a new file then the permissions applied for new file is for that sesscion and when the system will reboot linux will take automatically its default permission from etc/bashrc or /etc/profile ?

3- Can we make our own umask or the professional way is to follow 022 only ?

4- What is the benefit of umask in Linux?

thanks
garden

Last edited by gardenair; 04-14-2010 at 10:56 AM.
 
Old 04-14-2010, 11:41 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by gardenair View Post
Hi,
I am using Red Hat Linux 4 .There are some few questions in my mind related to umask. I want to know that is the default file and directory permissions ?

2- When we use umask (022) command in terminal. and create a new file then the permissions applied for new file is for that sesscion and when the system will reboot linux will take automatically its default permission from etc/bashrc or /etc/profile ?

3- Can we make our own umask or the professional way is to follow 022 only ?

4- What is the benefit of umask in Linux?
These questions have been asked on here before, give a quick thread search and you should find them. Google also has answers.

Also, this sounds VERY much like homework...did you check your textbooks?
 
Old 04-14-2010, 01:10 PM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

If you can't find the answer in the text book then look at 'Rute Tutorial & Exposition' section 'umask'.
 
  


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
Need help with the 'bridge' concept jonaskellens Linux - Newbie 3 12-28-2009 02:21 PM
concept deepaksinghnegi Linux - Newbie 2 10-23-2009 02:56 AM
regarding mount concept diwanshu Linux - Newbie 1 05-03-2009 01:23 AM
please help me on umask concept linuxnirmal Linux - General 3 09-05-2006 07:44 AM

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

All times are GMT -5. The time now is 09:34 PM.

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