LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 01-26-2010, 12:09 AM   #1
jcky
Member
 
Registered: Feb 2008
Location: China-Shanghai
Distribution: Rhel&Suse
Posts: 82

Rep: Reputation: 15
how to set umask to 0000 for a specail user?


Please see below:
vim ~/.bashrc
umask=0000(bottom line)
source ~/.bashrc

But when I relogin, default umask was still 0022.

How could I do ?
 
Old 01-26-2010, 01:43 AM   #2
Elemecca
Member
 
Registered: Nov 2008
Location: San Francisco, CA
Distribution: Gentoo, CentOS
Posts: 71

Rep: Reputation: 22
'umask=0000' sets an environment variable called 'umask' to '0000'. It does not set your umask. To do that, you need to call the 'umask' command with '0000' as a parameter'. Thus, 'umask 0000'.
 
  


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
Set umask for process running root user uuplunkeruu Linux - Newbie 1 11-23-2009 06:01 PM
How Set Default Umask Ani Slackware 2 11-14-2009 09:49 AM
how can i do a global umask 0000 ? nass Linux - General 8 03-30-2007 06:10 PM
How to set umask DrRobin22 Linux - General 3 09-13-2006 05:46 PM
Set umask for user in KDE jferrando Linux - Security 2 01-12-2005 11:41 AM


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