- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: unable to create the user in HP-UX
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
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
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-02-2015 08:40 AM
07-02-2015 08:40 AM
unable to create the user in hp-ux
i am unable to cretae the user acount ,, it gives error----
#useradd -u 140 -m -d /home/rajesh rajesh
"Loing name not unique"
i was checked in /etc/passwd file , but in this file rajesh user name not available. but i am still facing the issue.
finally i was checked in /etc/shadown file, in this file the rajesh user name exsists, how to remove the rajesh user account name in shadow file.
Plesae share the safe methold to remove the name in /etc/shadown file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2015 09:48 AM
07-02-2015 09:48 AM
Re: unable to create the user in HP-UX
Have you tried using userdel(1m) first?
Otherwise use vipw(1m) to copy that entry from /etc/shadow to /etc/passwd, then use userdel(1m), then try adding.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2015 12:15 PM
07-02-2015 12:15 PM
Re: unable to create the user in hp-ux
Could you please share the procedure
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2015 07:12 PM
07-02-2015 07:12 PM
Re: unable to create the user in HP-UX
>Could you please share the procedure?
I thought I did. Did userdel(1m) work?
If it fails because of the missing entry in /etc/passwd, you need to create one using vipw(1m).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2015 12:55 PM
07-03-2015 12:55 PM
Re: unable to create the user in HP-UX
hi,
one more information,, this rajesh is root equvalent id. so rajesh user id is 0. so we cannot directlry delete this account.
kindly confirm for editing shardow file, please find the below procedure .
1.backup the file /etc/passwd, /etc/group ,/etc/shadow ,/etc/gshadow
2. vipw -s --remove the name rajesh in the shadow file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2015 03:34 AM
07-04-2015 03:34 AM
Re: unable to create the user in HP-UX
>rajesh is root equivalent id. so rajesh user id is 0. so we cannot directly delete this account.
I see nothing in userdel(1m) that deletes the files by default.
>2. vipw -s -remove the name rajesh in the shadow file
vipw(1m) only works on passwd(4).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2015 11:56 AM
07-04-2015 11:56 AM
Re: unable to create the user in HP-UX
->vipw(1m) only works on passwd(4).
it means we can only delete passwd file ,, so then how to remove the entry in shadow file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2015 03:04 AM
07-05-2015 03:04 AM
Re: unable to create the user in HP-UX
>it means we can only delete passwd file
But you can add to passwd(4).