- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to change the default umask of root
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2010 10:52 AM
тАО03-28-2010 10:52 AM
how to change the default umask of root
I ahve a pre installed HP UX system 11.31 with default umask 077 how i can change thw default umask. I dont want to change in .profile file i.e umask 022. Is there any file i have to make changes?..
Thanks,
Mallikarjun Belkunde
- Tags:
- umask
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2010 12:15 PM
тАО03-28-2010 12:15 PM
Re: how to change the default umask of root
"...I dont want to change in .profile file i.e umask 022..."
In hp-ux the default root shell is posix and posix uses .profile to execute its setup environment.
You can not change this.
If you do, i.e., go into /etc/password and change sh to ksh or csh, then you make the box unbootable, and you have to boot into single user or LVM maint mode and change /etc/passwd back to sh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2010 12:31 PM
тАО03-28-2010 12:31 PM
Re: how to change the default umask of root
This is the only place you can change umask's default setting, and that will only affect the /root home directory login.
Any other place, the only other place being /etc/profile, affects every new file or directory made in the O/S and now puts the O/S into an unknown state.
'umask' is made for home directory manipulation only when placed in the login shell environment set up file, i.e., .login, .profile, .cshrc. 'umask' in /etc/profile is for the entire O/S.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2010 12:42 PM
тАО03-28-2010 12:42 PM
Re: how to change the default umask of root
So try putting 'umask' in /etc/profile and test it out.
a) vi /etc/profile add 'umask 022' at bottom.
Verify other occurances of umask in /etc/profile but don't comment them out.
b) su - users
c) touch files
See if you get what you're looking for.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2010 12:47 PM
тАО03-28-2010 12:47 PM
Re: how to change the default umask of root
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2010 03:19 PM
тАО03-28-2010 03:19 PM
Re: how to change the default umask of root
I think i have to chk in /etc/profile file. I will check today in off. and will try the solution.Some of not getting the point. That i have installed system having umask 077 and i want to change the umask to 022 without editing the /.profile file.
Thanks,
Mallikarjun Belkunde
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2010 06:59 PM
тАО03-28-2010 06:59 PM
Re: how to change the default umask of root
what have you installed ? you mean new installation ..?
man umask (should be able to help to understand your requirement >>i want to change the umask to 022 change the umask to 022 without editing the /.profile file.<<<
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2010 07:43 PM
тАО03-28-2010 07:43 PM
Re: how to change the default umask of root
You can find umask value set in /etc/profile you change the umask value here if umask entry not available you can add
umask 022
Chandra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2010 10:55 PM
тАО03-28-2010 10:55 PM
Re: how to change the default umask of root
What are you trying to do that you can't edit /.profile?
>I want to change the umask to 022 without editing the /.profile file.
As mentioned several times, you could also edit /etc/profile to effect all real shell users.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2010 09:06 AM
тАО03-29-2010 09:06 AM
Re: how to change the default umask of root
The umask value will be saved via a symbolic env link.
Run info env to read more.