- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: creating the user with the uid '0'
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
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
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-30-2009 10:12 PM
тАО11-30-2009 10:12 PM
Root is also the user owning the uid '0'.
could any body tell me how to create it ?
Thanks in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2009 10:17 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2009 10:20 PM
тАО11-30-2009 10:20 PM
Re: creating the user with the uid '0'
Root is also the user owning the uid '0'.
could any body tell me how to create it ?<<
It depends of what purpose you are willing do ?
you can perform above safe and secure by "sudo"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2009 10:24 PM
тАО11-30-2009 10:24 PM
Re: creating the user with the uid '0'
Installation of Sudo and Configuration
http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1259648615352+28353475&threadId=1237439
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2009 10:27 PM
тАО11-30-2009 10:27 PM
Re: creating the user with the uid '0'
uid 0
should find many old threads on this topic,
most of which seem to advise against doing
it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2009 10:29 PM
тАО11-30-2009 10:29 PM
Re: creating the user with the uid '0'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2009 11:18 PM
тАО11-30-2009 11:18 PM
Re: creating the user with the uid '0'
well youcan not create it, but you can change it later in passwd file and that user would behave like root.
BR,
Kapil+
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2009 11:38 PM
тАО11-30-2009 11:38 PM
Re: creating the user with the uid '0'
>>>>Root is also the user owning the uid '0'.
Please forgive your poor machine ;-) and install sudo with appropriate priviledges to specific users.
>>>>could any body tell me how to create it ?
You can manually change uid to 0 after user account creation but its highly NOT-RECOMMENDED.
Cheers!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 12:05 AM
тАО12-01-2009 12:05 AM
Re: creating the user with the uid '0'
for giving the root permission to the some users . it is needed..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 12:32 AM
тАО12-01-2009 12:32 AM
Re: creating the user with the uid '0'
Thats what people are talking about here is to install sudo which would give only necessary access to another user.
BR,
Kapil+
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 01:37 AM
тАО12-01-2009 01:37 AM
Re: creating the user with the uid '0'
As others have mentioned, this is not a good idea security-wise.
But if you really really want it, you can use vipw(1m) to add them. And use vipw to remove them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 06:14 AM
тАО12-01-2009 06:14 AM
Re: creating the user with the uid '0'
Any user with udi 0 is superuser
just add -o (Allow the UID to be non-unique) along with useradd and uid 0.
However better option is to install sudo , this will also give you to assign users to execute limited command by root users.
Javed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 08:02 AM
тАО12-01-2009 08:02 AM
Re: creating the user with the uid '0'
If you've made them UID = 0, you might as well give them the root password, as that's probably safer.
you should consider using su or sudo or PowerBroker or ???
If you're subject to security audits, or things such as SOX or PCI requirements, you'll get clobbered if they find this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 08:09 AM
тАО12-01-2009 08:09 AM
Re: creating the user with the uid '0'
To underscore OldSchool's sage advice I would urge you to read this thread to understand one "nightmare":
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1309715
Simply because you _can_ do something doesn't mean that you _should_. Don't replicate uid=0.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 09:03 AM
тАО12-01-2009 09:03 AM
Re: creating the user with the uid '0'
You don't talk about why the users need root. Maybe they really need it however I have found that people that NEED root to do there job are not doing it well, correctly, whatever way you like to say it.
Perhaps SUID needs to be set on the file(s) they are using?
In any case it would be nice to know why they need root.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 09:13 AM
тАО12-01-2009 09:13 AM
Re: creating the user with the uid '0'
Probably more like: In any case it would be nice to know why they **THINK** they need root.
The other way to look at this is if you give out the root password, or create multiple UID 0 accounts, guess where the fingers will point **WHEN** something catastrophic happens.
With multiple UID 0 accounts it is not a matter of **IF** something bad will happen, but **WHEN** something bad will happen.
If your users are anything like some users I have dealt with, they will NOT take responsibility for doing something stupid that crashes the system. "No, it couldn't have been ME!!" will be heard a LOT! Then the fingers will start pointing, and ultimately the blame will fall to you since you are the system administrator.
Is that what you want to happen? I doubt it!
You need to find out what the users **REALLY** need and then use something like sudo to fulfill that need.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 06:14 PM
тАО12-01-2009 06:14 PM
Re: creating the user with the uid '0'
Actually, root (and any other user id like bill or jimmy) does not 'own' a uid. User names are only for humans because numbers are hard to remember. The user name you see for uid 0 is the first match in the passwd file. If you put bill (with uid 0) first, then all uid 0 files would appear to be owned by bill. But really, they have an ownership of 0 and that is all.
As has been mentioned, multiple uid 0 users is a very, very bad idea. Not only does it compromise security, but you are giving possibly untrained users the ability to completely destroy your system with one command. And someday, you or one of your uid 0 users may want to remove files owned by bill or owned by jimmy and you end up removing every file owned by uid 0 -- thus destroying your system.
Use this command to see how many uid numbers have been compromised:
logins -d
For safety and security, there should be no output from this command.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 06:53 PM
тАО12-01-2009 06:53 PM
Re: creating the user with the uid '0'
Using vipw(1m) to remove the user wouldn't have that problem.