- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- is SUDO 100% 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
тАО10-06-2009 08:08 AM
тАО10-06-2009 08:08 AM
is SUDO 100% root?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2009 08:10 AM
тАО10-06-2009 08:10 AM
Re: is SUDO 100% root?
Need
name of account executing the sudo command
the command
the /etc/sudoers file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2009 09:07 AM
тАО10-06-2009 09:07 AM
Re: is SUDO 100% root?
Hummmm, was there some sort of error message like parity error on disk, or did tar core dump, or out of memory? Maybe a permission problem or possibly a sudo error message such as the wrong permission on config files and directories?
sudo works exactly as defined by the sudoers file. A bit more information will help.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2009 11:08 AM
тАО10-06-2009 11:08 AM
Re: is SUDO 100% root?
If you run "sudo -s" to get a root shell, you'll get the shell specified in your regular $SHELL environment variable, using the shell startup scripts in your regular $HOME.
This is so that if you prefer a plain "# " root prompt and another sysadmin at your site wants a 160-character colourful prompt with username + hostname + load level + pathname + a blinking clock, you both can easily get what you want without interfering with each other's setups.
If you want to get /sbin and /usr/sbin included to your PATH when using sudo, you have to either use "sudo -i" (or "sudo -H -s" with older versions of sudo) or make your regular session startup scripts detect when the shell is running them as root and make the necessary changes.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2009 11:46 AM
тАО10-06-2009 11:46 AM
Re: is SUDO 100% root?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2009 12:01 PM
тАО10-06-2009 12:01 PM
Re: is SUDO 100% root?
> The error message is "you have to be root to run", and whoami tells it is root.
There is a big difference between what 'whoami' and 'who am i' return.
The first form ('whoami') returns the effective user name. The second form ('who am i') returns the original, initial login name.
Regards!
...JRF...