LinuxQuestions.org
Review your favorite Linux distribution.
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 06-19-2004, 05:13 AM   #1
r_ibsen
LQ Newbie
 
Registered: Jun 2004
Distribution: Gentoo
Posts: 6

Rep: Reputation: 0
I can't login with newly created user


I'm having problems creating new users and making them function properly:

Code:
useradd -d /home/testuser -g users -m -p dropdead -s /bin/bash testuser
This seems to work out fine. However, when I log out and try (through gdm) to login as testuser, no matter what I type for password it is rejected. I then login as root and do a su to testuser to try and set the password again:

Code:
T23 root # su - testuser
testuser@T23 testuser $ passwd
Changing password for testuser
(current) UNIX password: [I enter dropdead]
passwd: Authentication token manipulation error
testuser@T23 testuser $
Any suggestions? Could it be some file permissions are screwed up? I haven't got a clue :-(
 
Old 06-19-2004, 08:27 AM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Become root and then do
passwd testuser
 
Old 06-19-2004, 08:32 AM   #3
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
The command: useradd fred -p testing does create the user ok but if you look in the /etc/shadow file, you can see the plain text password. That is most likely why the password fails. I don't know off hand what the command is to make -p create an encrypted password.
The easiest sollution which I know of for now is use the command: passwd fred which will prompt you ( root user ) for the new password. Then look at /etc/shadow as you will see the password is encrypted now.
 
  


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
Problems with console login on newly created root filesystem (for PXEboot) holandes777 Linux - General 1 08-05-2004 05:11 PM
cannot login as newly created user in terminal linoops Linux - Newbie 1 06-04-2004 08:07 PM
Nothing inside X Window for newly created User ID benny Linux - Newbie 6 04-10-2004 12:03 AM
Is there a way to custiomize newly created user profiles? pandersson61 Linux - General 3 01-17-2004 02:12 AM
Newly created user can't run kde neeyo Linux - General 4 04-11-2002 03:29 PM

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

All times are GMT -5. The time now is 07:12 AM.

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