- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: can sudo users change the root password?
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
Forums
Discussions
Discussions
Discussions
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
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
06-08-2006 10:57 PM
06-08-2006 10:57 PM
can sudo users change the root password?
I have added these lines in sudoers files:
User_Alias FULLSUDO = sestj , serab, sebos, seglb, searj, semab, sejos, prkeg
FULLSUDO ALL=(root) NOPASSWD: ALL
please let me know are these users (sestj , serab, sebos, seglb, searj, semab, sejos, prkeg) able to run all the commands including #passwd command (to change the root password)
can they change the root password?
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2006 11:09 PM
06-08-2006 11:09 PM
Re: can sudo users change the root password?
They should not be able to change the root password.
Don't take my word for it.
Log in as root
su - seastj
passwd root
If it lets you do it, modify the configuration.
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
06-09-2006 12:00 AM
06-09-2006 12:00 AM
Re: can sudo users change the root password?
There is no technical way on a normal HP-UX to prevent anyone with full root privileges from changing the root password.
Try it out:
# su - sestj
sestj$ sudo -u root /bin/passwd root
or
sestj$ sudo -u root /sbin/passwd root
(changing the root password without prompting for the previous one)
sestj$ sudo -u root vipw
(editing the password file directly)
sestj$ sudo -u root vi /tcb/files/auth/r/root
(editing the Trusted System password file for root, perhaps substituting the password hash with their own, effectively changing the password)
sestj$ sudo -u root -s
(getting a root shell)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2006 12:12 AM
06-09-2006 12:12 AM
Re: can sudo users change the root password?
When performing the following you'll need to know the old password:
sudo -u root /bin/passwd root
Changing password for root
Old password:
But when they have sudoall rights, they can change the root passwd via "vi".
Darrel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2006 12:17 AM
06-09-2006 12:17 AM
Re: can sudo users change the root password?
FULLSUDO ALL=(root) NOPASSWD: ALL
The word ALL means that every command in the computer can be run by these users (not a good idea at all!). You should explicitly list the allowed commands on that line, and any command that is not listed will not be allowed. In fact, any FULLSUDO user that tries to run a disallowed command will have their failed attempt logged.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2006 05:49 AM
06-09-2006 05:49 AM
Re: can sudo users change the root password?
I would follow Bill's suggestion and specify every command you want them to have access too.
In the case of them needing the majority of the commands you could also take away commands you don't want them to have access too. How to do this is fully documented in the sudo documentation.
Also be careful when allowing commands, allowing any shell or editor, provides a means to get more access than they may normally be allowed. There are alot of commands that you have to be careful of shells and editors are just a quick example.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2006 06:06 AM
06-09-2006 06:06 AM
Re: can sudo users change the root password?
In fact, they will have total access just being a root user.