- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Unable to delete a 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
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
07-03-2006 12:09 AM
07-03-2006 12:09 AM
useradd -u 0 -g 0 ......
after seeing the /etc/passwd and /et/group file.
Now if i try to delete the user it says
"Login xxxxx is currently in use."
How do i delete this user.
Also when i see the output of who i dont see this user but root.
Im using Hp-UX11.11
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2006 12:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2006 12:16 AM
07-03-2006 12:16 AM
Re: Unable to delete a User
deleting a user this way cannot be done if you share user-ID's (which IMHO is bad practice anyway)
# EDITOR="" vipw
remove the offending line, and save
Don't repeat that mistake, please.
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2006 12:28 AM
07-03-2006 12:28 AM
Re: Unable to delete a User
I have a similar user on my system already
with all the root priviledges.
I want to either change its name or create another user.
And does changing the logon_name using usermod has any alternate effect too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2006 12:34 AM
07-03-2006 12:34 AM
Re: Unable to delete a User
the default utilities for adding and deleting users do not support this scheme, so you will have to use vipw, and be very careful.
A MUCH better solution however would be to not use root users at all, but install sudo and make a good scheme to those users
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2006 01:01 AM
07-03-2006 01:01 AM
Re: Unable to delete a User
As Procura stated, you *can* have multiple ids with a uid of zero.
However you are not ctually granting root privleges to a user, rather you are actually creating muliple aliases for the root account, with no way to differentiate between them.
Again as Procura stated, sudo, which is available here:
http://gatekeep.cs.utah.edu/hppd/hpux/
is a much better way to allow users root level access. They log in as themselves and then switch to root, using their own password. (keeping roots pasword secure)
The way your system is currently set up with multiple ids with a uid of zero, is a big security risk, and as such would fail any security audit of the system.