LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 01-11-2005, 08:20 AM   #1
ruben0076
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
jsutton
Member
 
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
ruben0076
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
reddazz
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
ruben0076
LQ Newbie
 
Registered: Jan 2005
Posts: 12

Original Poster
Rep: Reputation: 0
debian
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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