Solved

adding users

Posted on 2004-09-27
7
264 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
  • 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 25 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
Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

 
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 25 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

705 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now