- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- umask not taken effect !!!
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
тАО05-06-2006 08:09 PM
тАО05-06-2006 08:09 PM
I add umask 022 to my .profile to change premission group with "w" but no changes happen to the umask setting. I did logoff/login again, but no change! I also done through command line but no change, see below;
$ umask -S
u=rwx,g=rx,o=rx
$ umask u=rwx,g=rw,o=rx
$ umask -S
& u=rwx,g=rw,o=rx
$ cal > test
$ ll test
-rw-rw-r-- 1 pin pin 225 May 7 11:09 test
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2006 08:25 PM
тАО05-06-2006 08:25 PM
SolutionIts being overridden elsewhere.
Two easy ways to check.
create a new user that only uses /etc/profile and .profile
Make sure .profile is correct.
re-run your test.
If its still a problem, then there is something after the umask statement in .profile overriding umask.
This is quite common.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2006 08:31 PM
тАО05-06-2006 08:31 PM
Re: umask not taken effect !!!
But if you see the example i try through command line !!
$ umask u=rwx,g=rw,o=rx
$ umask -S
& u=rwx,g=rw,o=rx
$ cal > test
$ ll test
-rw-rw-r-- 1 pin pin 225 May 7 11:09 test
Ahmed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2006 08:47 PM
тАО05-06-2006 08:47 PM
Re: umask not taken effect !!!
As pointed out above it seems that umask is being set somewhere else as well apart from your .profile.
Is it defined anywhere in $HOME/.kshrc (for ksh sehll) or $HOME/.cshrc (for csh )
or try adding the umask 022 command as the last line in your .profile, if you are not able to trace where else umask is defined, so that this is the last command in your .profile that will be executed and will override any settings done.
But mind you if umask is being set in any shell startup script that setting will override incase you invoke any subshells or execute any commands with ksh shellprogram.ksh
Regards,
Ninad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2006 08:58 PM
тАО05-06-2006 08:58 PM
Re: umask not taken effect !!!
found the problem the persmiision I was using was wrong, I should use 002, anyway it is woking now.
Regards,
Ahmed