Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-11-2005, 08:20 AM   #1
LQ Newbie
Registered: Jan 2005
Posts: 12

Rep: Reputation: 0
useradd problem

If i make a new user by doing 'useradd -d /home/test -s /bin/sh -p test test'
the user is in the file /etc/passwd and /etc/shadow but i cannot login with login/pass: test/test
if i make the same user with the 'adduser' command i can login without a problem.
What is the problem here???
Old 01-11-2005, 08:34 AM   #2
Registered: Nov 2003
Location: Greenville, SC, USA
Distribution: (K)ubuntu 5.04 / Fedora 4
Posts: 113

Rep: Reputation: 15
I'm seeing the same results....As a work around, you can create the user and set the password afterwards using 'passwd [username]'
Old 01-11-2005, 08:52 AM   #3
LQ Newbie
Registered: Jan 2005
Posts: 12

Original Poster
Rep: Reputation: 0
u have the same results like me with the useradd command?
So what is the useradd commands make a new user that u cannot use?
not very usefull if you ask me.

thx for the fast reply
Old 01-11-2005, 09:09 AM   #4
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
What distro are you using. I had a similar problem a while ago on Slack 9.1. I tend to use "adduser" now.
Old 01-11-2005, 11:28 AM   #5
LQ Newbie
Registered: Jan 2005
Posts: 12

Original Poster
Rep: Reputation: 0


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
useradd problem efanning Linux - Newbie 1 07-29-2004 07:24 PM
useradd problem giovannym Linux - Newbie 4 06-23-2004 07:59 PM
useradd Problem deepakjena_2003 Linux - Newbie 2 01-19-2004 08:21 AM
useradd -p problem gizbon Linux - General 4 11-11-2002 03:03 PM
useradd problem scatcat Linux - Newbie 3 06-21-2002 03:33 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:22 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration