- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Superuser rights
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
05-23-2002 04:35 AM
05-23-2002 04:35 AM
Superuser rights
Is it possible to give "Superuser righta" to a "ordinary" user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2002 04:36 AM
05-23-2002 04:36 AM
Re: Superuser rights
Good luck,
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2002 04:39 AM
05-23-2002 04:39 AM
Re: Superuser rights
Instead, get a copy of sudo from the Liverpool Archive:
http://hpux.connect.org.uk/
This program allows you (as root) to specify not only which users get superuser privileges but also which commands they can use and even which parameters are legal. For instance, you could allow many users to mount and umount a CDROM by specifying the mount command along with one devicefile. Any attempt to use the wrong commands or parameters will fail and logged.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2002 04:40 AM
05-23-2002 04:40 AM
Re: Superuser rights
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sudo-1.6.6/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2002 04:45 AM
05-23-2002 04:45 AM
Re: Superuser rights
run
sam -r
as root and allocate permissions to groups/users.
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2002 04:57 AM
05-23-2002 04:57 AM
Re: Superuser rights
I have been operating that way for years with no problems that I know of.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2002 05:02 AM
05-23-2002 05:02 AM
Re: Superuser rights
In the interest of "completeness", there is another classic approach, albeit frowned upon for security. That is to use a 'setuid' script to provide an ordinary user some special function.
You would create a Posix shell script with the shell interpreter specified:
#!/usr/bin/sh
If the name of the script were '/usr/local/bin/mysh' then, do:
# chown root:dba /usr/local/bin/mysh
# chmod 4110 /usr/local/bin/mysh
Users of the group 'dba' can now execute 'mysh' with the effective uid=0.
Notice that while they can execute the shell, they cannot read nor 'vi' it, thus providing a certain measure of security.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2002 05:10 AM
05-23-2002 05:10 AM
Re: Superuser rights
The "classic" error with having multiple uid=0 accounts is that you (or your successor) fail to notice that user 'john' has a uid=0, and proceed to remove 'john' from the server by name:
# find \ -user john -exec rm {} \;
...you just removed all files belonging to uid=0 (root's !!!)
[...time for an Ignite recovery ;-) ]
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2002 05:34 AM
05-23-2002 05:34 AM
Re: Superuser rights
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2002 11:35 AM
05-23-2002 11:35 AM
Re: Superuser rights
Besides what JRF pointed out there are numerous applications which will error from this as well.
Lets add the fact that a simple usermod can trash your OS.
Next
Because if it's easy use, most applications use your UID from getpwnum(). Of the remaining programs they will use the Name from getpwnam().
Rarely programs grab your full password entry getpwent().
I for one dont want to sit with developers on the phone trying to debug their apps when I have problems!
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2002 11:38 AM
05-23-2002 11:38 AM
Re: Superuser rights
If the user id is set to 0, the user will have superuser rights on the system. To create such a user id, try,
useradd -u 0 -0 -g root -G root -d /user_home_dir -s /sbin/sh user_name
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2002 03:02 AM
05-24-2002 03:02 AM
Re: Superuser rights
Thanks evrybody for your answers.
The security in ny case is no problem, this is not "real" users but application owners as "oracle", "dmadmin" etc. in fact it is the same person as root (I). This question is related to a question in another forum where I also get some answeres.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x20d191ccb36bd611abdb0090277a778c,00.html