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
Solved

adding users

Posted on 2004-09-27
7
269 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
Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

 
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to enable SSH in Ubuntu. 7 100
linux service nerwork restart throwing eth1 not dound? 5 86
Iptables and mirroring ports 4 87
route 2 traffic streams on single NIC 6 58
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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

809 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