- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: super user
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
тАО11-14-2007 03:14 AM
тАО11-14-2007 03:14 AM
super user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2007 03:16 AM
тАО11-14-2007 03:16 AM
Re: super user
By the way, root equivalent users are not a particularly good idea - there should be one and only one root user.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2007 03:18 AM
тАО11-14-2007 03:18 AM
Re: super user
Any user with an id=0 is a root (superuser).
Don't ever create multiple uid=0 accounts. Not only is it a security risk, it is a disater waiting to happen when you delete one that you no longer want.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2007 03:18 AM
тАО11-14-2007 03:18 AM
Re: super user
As mentioned you are interested in UID 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2007 03:20 AM
тАО11-14-2007 03:20 AM
Re: super user
servera:root /root/ # logins
root 0 sys 3
daemon 1 daemon 5
bin 2 bin 2
sys 3 sys 3
adm 4 adm 4
uucp 5 sys 3
lp 9 lp 7
And look for the users that have the second field of 0. Otherwise cat /etc/passwd and look through the same list looking for 0 in the 3rd field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2007 03:38 AM
тАО11-14-2007 03:38 AM
Re: super user
Any lines listed will have UID 0 which makes them a super-user. A much more difficult task is to determine who can become a super-user (ie who knows the root password).
You should also note that ALL of your users have super-user privileges (at least at some times). Note that the permissions on the passwd file are read-only for all users and yet users are able to change their passwords. How can this be possible? The passwd command is a setuid program owned by root which means that the effective UID becomes 0 when the command is executed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2007 05:02 AM
тАО11-14-2007 05:02 AM
Re: super user
awf was just misspelt my ACS - he shurely meant awk. His command can be abbreviated to
awk -F: '$3 == 0' /etc/passwd
For a NIS configuration, you can check additionally
ypcat passwd | awk -F: '$3 == 0'
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2007 08:47 AM
тАО11-14-2007 08:47 AM
Re: super user
#logins
root 0 sys
sp,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2007 01:26 PM
тАО11-14-2007 01:26 PM
Re: super user
# logins
root 0 sys 3>>
skn 0 sys 3>>
daemon 1 daemon 5
bin 2 bin 2
sys 3 sys 3
adm 4 adm 4
uucp 5 sys 3
lp 9 lp 7
nuucp 11 nuucp 11
hpdb 27 other 1 ALLBASE
www 30 other 1
webadmin 40 other 1
those with uid 0 will have root priviledged
WK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2007 03:09 PM
тАО11-14-2007 03:09 PM
Re: super user
Check the /etc/passwd file for the uid no other user then root should have 0 uid.
rgds,
jaivinder