- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: useradd problem
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
тАО04-17-2009 09:45 AM
тАО04-17-2009 09:45 AM
useradd problem
useradd тАУu uid тАУm тАУc usercomment -s /usr/bin/sh username
it takes the argument but when i su to the user or try looking for it in the /etc/passwd file its not there.....
what do u guys think
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2009 09:57 AM
тАО04-17-2009 09:57 AM
Re: useradd problem
I assume that you are root. This works:
# useradd -u 9999 -m -c "New User" -s /usr/bin/sh someuser
If you echo the return value ($?) this should help discover the problem. The retrun codes are documented in the manpages for 'useradd'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2009 10:43 AM
тАО04-17-2009 10:43 AM
Re: useradd problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2009 10:53 AM
тАО04-17-2009 10:53 AM
Re: useradd problem
#ypwhich
Are you working as root on the machine ?
-uvk
Like it or worked !! Click kudos !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2009 11:31 AM
тАО04-17-2009 11:31 AM
Re: useradd problem
useradd -u 5199 -m -d /home/sm29 -c "sam matt" -s /usr/bin/ksh sm29
what do u guys think,, how should this be erectified
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2009 12:04 PM
тАО04-17-2009 12:04 PM
Re: useradd problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2009 08:37 PM
тАО04-17-2009 08:37 PM
Re: useradd problem
You can check below link
http://docs.hp.com/en/B2355-90692/useradd.1M.html
http://docs.hp.com/en/5992-4607/ch04s02.html
Rgds//
Taifur
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2009 05:18 AM
тАО04-18-2009 05:18 AM
Re: useradd problem
# grep ^passwd /etc/nsswitch.conf
if there is an entry like 'nis', you can retrieve the passwd line for that user like this:
# ypcat passwd | grep user
Anyway, I suggest to use the pwget command to retrieve the pw-line for a specific user, it queries the local passwd, the NIS database and also LDAP:
# pwget -n username
Unix operates with beer.