- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Useradd fails
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
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
тАО07-20-2009 01:43 PM
тАО07-20-2009 01:43 PM
When I am trying to add the user using useradd or sam, it throws the following erros.
useradd test
Cannot add the entry
OS : HPUx 11.23
Please help.
Ravi.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2009 01:53 PM
тАО07-20-2009 01:53 PM
SolutionCheck the syslog.log for errors regarding this. Are you logged in as root?
Are you using a standard system or a trusted system?
What happens if you just type useradd without no options in the command line.
Check the /etc/password file for inconsistencies with the pwck commannd.
Regards,
Jaime.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2009 02:15 PM
тАО07-20-2009 02:15 PM
Re: Useradd fails
Echoing the return value might tell you more about the reason for the failure"
# useradd testuser
# echo $?
http://www.docs.hp.com/en/B2355-60130/useradd.1M.html
I would note in passing that using the name "test" is poor since it happens to be the name of a command. You will notice that I substituted "testuser" in my example.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2009 04:34 PM
тАО07-20-2009 04:34 PM
Re: Useradd fails
Check for the /etc/passwd file. is the same error you are getting while trying from SAM. Try to enter useradd with the full option as
useradd -g
and paste the error, if you are getting.
@JRF, regarding adding test user in a server, we can add it as i have tried. Refer the below output.
root # useradd test
root # cat /etc/passwd | grep -i test
test:*:120:20::/home/test:/sbin/sh
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2009 08:23 PM
тАО07-20-2009 08:23 PM
Re: Useradd fails
I don't think there is any syntax where an executable can be confused with a user name?
So only executables shouldn't be the name of a builtin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2009 05:33 AM
тАО07-21-2009 05:33 AM
Re: Useradd fails
Thank you for the replies. I could manage to solve the problem.
To begin with
1. System is trusted
2. To clarify, I used the word test as an example. In reality I was using muthusw
3. I tried to add the user using useradd (with all options), useradd (without options) and SAM.
Following was the error messages.
"Cannot add the entry"
Investigation
-------------
I have checked the permissions of /etc/passwd, /etc/group, /usr/sbin/useradd, files in /etc/skel
I have checked for the presence of /etc/ptmp
I tried to check for any process that was wrting to the /etc/passwd using lsof, but no luck
Resolution
----------
I have run authck -a. When I checked the o/p I found the following file.
/tcb/files/auth/v/muthusw
When I removed the file, useradd is successful.
Cheers,
Ravi.