adding users

Hi experts.
I'm trying to add users for  email accounts. After adding the users in the virtusertable file and genericstable, I go to do:

useradd myuser -p userspass

...the user doesn't seem to be added though...at least it won't let me log in.  Thanks.
kephillipsAsked:
Who is Participating?
 
jlevieConnect With a Mentor Commented:
Are you aware that when using "-p password" that "password" must be the encrypted copy of the user's password?
0
 
liddlerCommented:
You probably haven't created a home directory for the user

mkdir /home/myuser
chown myusrr /home/myuser

or when you create the user
useradd -p userpass -d /home/myuser -m myuser
0
 
kephillipsAuthor Commented:
do i need to restart something in order for it to work?
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

 
liddlerCommented:
No,
If it still doesn't work, what is the output of:
grep myuser /etc/passwd

As root
type
su - myuser
does this work?
0
 
kephillipsAuthor Commented:
jlevie,
no. i was not aware of this.  What does this mean?

liddler,
su - myuser works.
0
 
liddlerConnect With a Mentor Commented:
jlevie's comment means you only really use the -p command when you are copying a user from one machine to another and you copy the encrypted version of the password fro the /etc/passwd or /etc/shadow file
If you aren't doing this
just do:
useradd -d /home/myuser -m myuser
passwd myuser
then enter the password (twice)
0
 
kephillipsAuthor Commented:
thanks.


0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.