- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sudo umask 077
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
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
тАО02-12-2008 02:23 AM
тАО02-12-2008 02:23 AM
sudo umask 077
the command sudo umask always returns 077. We tried everything: newer versions of sudo (both from the HP IE CD as from the Porting Archive) and even recompiling sudo with the flag --with-umask=0022. NOthing helps. I even hacked the code at various places to get the right umask. We keep getting umask 077.
So what is going on? Any help is appreciated.
Thanks,
Mario Brand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2008 04:42 AM
тАО02-12-2008 04:42 AM
Re: sudo umask 077
What are you trying to run with su ?, what you are seeing with the umask command is your environment mask that is set in the .profile file, if you want those changes to be reflected you need to change them in the profile file of the user/s that you want to su.
Try it and let us know!
Regards,
Marco
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2008 05:05 PM
тАО06-11-2008 05:05 PM
Re: sudo umask 077
On 11.11 in sudoers : Defaults !umask
umask 022
sudo umask
(returns 022)
On 11.23 it always returns 077 as the umask with the same version.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2008 06:00 AM
тАО08-14-2008 06:00 AM
Re: sudo umask 077
We keep getting umask 077 (sudo -u toto umask always return 077) and this is a critical issue!
Thanks
JC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-25-2008 07:14 PM
тАО08-25-2008 07:14 PM
Re: sudo umask 077
I've reopened bug 291 about this (which was originally opened for !umask not seeming to work, but I too am having no luck getting any sudoers umask setting to take effect): http://www.gratisoft.us/bugzilla/show_bug.cgi?id=291
Val
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-26-2008 12:20 PM
тАО08-26-2008 12:20 PM
Re: sudo umask 077
"This is due to PAM resetting the umask, not sudo (specifically the
pam_hpsec module). See the security(4) man page for more info. If you
are not able to configure PAM to preserve the umask, you can try
running configure with the --disable-pam-session flag which will
prevent sudo from running the PAM session code."
I want to know how do you the modify the PAM to preserve the umask ?
- Tags:
- libpam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-24-2008 09:10 AM
тАО09-24-2008 09:10 AM
Re: sudo umask 077
pam_hpsec is overriding the umask. To make it work you need to modify the pam.conf file under the session section.
run command
sudo umask
0777
Modify line
#OTHER session required libpam_hpsec.so.1
to
OTHER session required libpam_hpsec.so.1 bypass_umask
then run command
sudo umask
02
Now for the fun part.... what exactly does this change mean.. I do not know. I'd suggest running in test for a while until your comfortable before implementing in prod.
Thanks
Ralph
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-24-2008 11:30 AM
тАО09-24-2008 11:30 AM
Re: sudo umask 077
sudo session required libpam_hpsec.so.1 bypass_umask
That makes it specific for sudo and does not / nor will it screw up anything else that the OTHER field uses.
Hope this helps you
Ralph
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-24-2008 03:34 PM
тАО09-24-2008 03:34 PM
Re: sudo umask 077
Thanks very much Ralph!
Val