?
Solved

adding users

Posted on 2004-09-27
7
Medium Priority
?
274 Views
Last Modified: 2010-03-18
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.
0
Comment
Question by:kephillips
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 18

Expert Comment

by:liddler
ID: 12159579
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
 

Author Comment

by:kephillips
ID: 12159905
do i need to restart something in order for it to work?
0
 
LVL 40

Accepted Solution

by:
jlevie earned 100 total points
ID: 12159917
Are you aware that when using "-p password" that "password" must be the encrypted copy of the user's password?
0
The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

 
LVL 18

Expert Comment

by:liddler
ID: 12159928
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
 

Author Comment

by:kephillips
ID: 12159973
jlevie,
no. i was not aware of this.  What does this mean?

liddler,
su - myuser works.
0
 
LVL 18

Assisted Solution

by:liddler
liddler earned 100 total points
ID: 12160082
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
 

Author Comment

by:kephillips
ID: 12160112
thanks.


0

Featured Post

WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question