- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- user create issue
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
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
тАО06-20-2006 10:15 PM
тАО06-20-2006 10:15 PM
user create issue
I have some doubt regarding create user.
1. I created some user by the command:
# useradd -d /home/user1 -s /usr/bin/ksh -m user1
After that I checked in /etc/passwd, the password area for user1 is "*", if I am not wrong this means no passwd.
But I tried to log in from another server:
# rlogin server -l user1
it asked for passwd and I couldn't access with any keyword.
However if I create this user by sam, there is no such access problem. But the home directory is / instead of /home/user1. Can someone help on this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2006 10:20 PM
тАО06-20-2006 10:20 PM
Re: user create issue
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2006 10:21 PM
тАО06-20-2006 10:21 PM
Re: user create issue
'useradd' command: create new user
'passwd' command: deal with passwords
These are distinct things from the commands point of view.
In SAM you can easily setup the home directory as well as the standard directory path under which new homes should be created.
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2006 10:22 PM
тАО06-20-2006 10:22 PM
Re: user create issue
essentially you can create a user in two ways:
- by command line:
useradd -d /home/user1 -s /usr/bin/ksh -m user1
passwd user1
and assign a password.
You have to assign a password to that user after useradd command. After that you shouldn't have further problems.
- or if you prefer by SAM:
it is interactive and very friendly, between the options when creating the user you should see the HOME directory creation too, it is there that you have to assign an HOME directory for user1.
Let us know if you have problems.
HTH.
Good luck,
Fabio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2006 11:09 PM
тАО06-20-2006 11:09 PM
Re: user create issue
The * in the passwd file indicates you either you have a shadow file - /etc/shadow (As you may be using shadow software) OR you are having trusted system then passwords will be in encrypted form in file /tcb/files/auth/[1st alphabet of user's id]/[userid].
Thus if user id is abc1 then the file is
/tcb/files/auth/a/abc123
When you say home directory is / instaed of /home/user1 - what do you mean ? Do you mean that there is no /home/user1 directory created or when user logs in he lands into / ?
Check if the dir exists
ls -ld /home/user1
and check if user's home directory has been set to /home/user1 - grep the_userid /etc/passwd
Also as others have already pointed out after creating user using useradd, you need to set password using passwd username from root account.
Regards,
Ninad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2006 03:38 PM
тАО06-21-2006 03:38 PM
Re: user create issue
I understand the issue of creating the user by command is that I didn't create the passwd after that.
But when I use sam last time, I did select the make home directory /home/user1. and after created I checked that the /etc/passwd also have /home/user1 for this user, but actually this directory is not created and after I login by using this user1, it go to / dirctory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2006 05:47 PM
тАО06-21-2006 05:47 PM
Re: user create issue
Don't know the version you're using but check the following:
PHCO_33142:
( SR:8606430859 CR:JAGaf90305 )
Under certain scenarios, useradd/usermod/userdel are not working as expected.
You can use the passwd -f option to force the user to change his/her passwd at next logon.
Goodluck
Darrel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2006 09:25 PM
тАО06-21-2006 09:25 PM
Re: user create issue
I couldn't find this patch in my server. And my server is ia64 11.23. Do i need to install this patch? Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2006 09:55 PM
тАО06-21-2006 09:55 PM
Re: user create issue
Darrel