Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-25-2010, 11:09 PM   #1
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, 12:43 AM   #2
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'.


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

All times are GMT -5. The time now is 02:53 AM.

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