- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to add a second root on a HP-UX platform
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
04-03-2002 02:49 AM
04-03-2002 02:49 AM
I've heard that this is possibile but i don't know how to do.
Is it possible to do it with SAM ???
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2002 02:54 AM
04-03-2002 02:54 AM
Re: How to add a second root on a HP-UX platform
you can create a nornal user account using sam, and specify user id 0. which gives root privlidges.
John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2002 02:57 AM
04-03-2002 02:57 AM
Re: How to add a second root on a HP-UX platform
Just create a user in the /etc/passwd file with the same UID of root, that being 0.
Just be careful.....
MND
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2002 03:00 AM
04-03-2002 03:00 AM
Re: How to add a second root on a HP-UX platform
Create a user account and give it the user id 0.
I'm no sure SAM will allow this but you can easily change the UID number in the passwd file.
But be aware: Having a second UID=0 is a potential security risk and not recommended !!
Regards
Rainer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2002 03:03 AM
04-03-2002 03:03 AM
Re: How to add a second root on a HP-UX platform
It is possible but be aware of the following.
System Administrator may set up multiple accounts with the same uid, however this is done with the understanding that reverse uid lookups will find only the first instance of a
uid in the /etc/passwd file. Multiple accounts with the same uid are allowed, but will not work as expected with all commands.
C.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2002 03:07 AM
04-03-2002 03:07 AM
Re: How to add a second root on a HP-UX platform
as I said earlier you CAN do this in SAM I did it before I posted the answer.
John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2002 03:27 AM
04-03-2002 03:27 AM
Re: How to add a second root on a HP-UX platform
I don't like the idea to create another user with id 0.
what happen if you delete that user in sam with remove all files that belong to this user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2002 03:39 AM
04-03-2002 03:39 AM
Re: How to add a second root on a HP-UX platform
you can just duplicatie to root-line in the /etc/passwd file and change the name and the password, but:
You do not really have to "root" accounts: You will not be able to differ between this two account or even see, what was been done by which account.
Heiner
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2002 04:56 AM
04-03-2002 04:56 AM
SolutionThe first thing a hacker tries to do when breaking in is to attain root privileges and the one of these ways is to change an ordinary user ID into UID=0. Also, this poor user that is 'privileged' to have UID=0 will perform all normal functions with root privileges (reading email, writing scripts, cleaning up directories) and will very likely forget that rm -r * is incredibly dangerous. And then if that user leaves the company and you remove their login along with all the files that they own, you will destroy the entire system.
There are many other risks to such a plan. Instead, look at the man page for SAM concerning -r or restricted SAM and assign the required duties to this user. SAM will control access rights and the user is still an ordinary user.
Another alternative (very useful) is to download sudo, the SuperUser enablement program. It not limits users as to the types of commands they can run but can even limit the parameters allowed with specific commands (such as the device file used for mounting a CDROM).
Get a copy from: http://hpux.connect.org.uk/ (the HP-UX Porting and Archive Centre) or any of their mirrors.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2002 06:22 AM
04-03-2002 06:22 AM
Re: How to add a second root on a HP-UX platform
Edit your /etc/passwd and add your new username and then assign it a "0" as a User ID.
This will allow you to have a second root user on the Unix box.
Magdi