LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 11:28 AM   #1
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 610

Rep: Reputation: 31
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 11:56 AM.
 
Old 04-14-2010, 12:41 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,267

Rep: Reputation: 4440Reputation: 4440Reputation: 4440Reputation: 4440Reputation: 4440Reputation: 4440Reputation: 4440Reputation: 4440Reputation: 4440Reputation: 4440Reputation: 4440
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, 02:10 PM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,892
Blog Entries: 27

Rep: Reputation: 2183Reputation: 2183Reputation: 2183Reputation: 2183Reputation: 2183Reputation: 2183Reputation: 2183Reputation: 2183Reputation: 2183Reputation: 2183Reputation: 2183
Hi,

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 03:21 PM
concept deepaksinghnegi Linux - Newbie 2 10-23-2009 03:56 AM
regarding mount concept diwanshu Linux - Newbie 1 05-03-2009 02:23 AM
please help me on umask concept linuxnirmal Linux - General 3 09-05-2006 08:44 AM

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

All times are GMT -5. The time now is 01:39 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration