LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-26-2003, 04:25 PM   #1
boojummy
LQ Newbie
 
Registered: Oct 2003
Posts: 6

Rep: Reputation: 0
Unhappy Login problems, HELP!


Hello everyone,

I am unable to add new users to my system. I am currently using gentoo on ppc (G4, sawtooth) which I recently installed.

After running useradd, I run passwd to give the new user a password. Then I log out and try logging back in as the new user. I get the login prompt, then the password prompt, but after I give a password the system hangs. I tried waiting up to 20 minutes, but the same thing happens over and over, requiring a hard reboot.

I even tried out the superadduser util just to make sure I wasn't missing anything, but this doesn't work either.

The really strange thing is that root logs in without problems. I can even su to the new user in question, but I can't log in normally. Passwd doesn't give me any errors either when I change a user's password... I just can't login at the prompt.

I tried changing my compiler opts to something a little less questionable (mcpu=7400 instead of 7450) and re-emerging shadow, too. But this hasn't changed anything. (admittedly, I don't understand the shadow or PAM stuff very well)

Any help would be appreciated! I can provide information whatever information you think I need to work though this.

Thanks!!!
-b
 
Old 10-26-2003, 06:46 PM   #2
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
After you add the user, edit /etc/passwd and remove the x from the second field, so it looks like this:
<user>::506:506:<Users real name>:/home/<user>:/bin/bash

Then save that and you should be able to login without a password.

Also make sure you have a /etc/skel directory with at least these files in it.
.bash_logout .bash_profile .bashrc
 
Old 10-27-2003, 06:26 PM   #3
boojummy
LQ Newbie
 
Registered: Oct 2003
Posts: 6

Original Poster
Rep: Reputation: 0
Okay, I tried this, but I get the same problem - system hangs. Interestingly, the first time I did this, I mistakenly removed both the 'x' from the passwd file and the colon that preceded it. What resulted was an 'invalid password' error when I tried to log in, but the crashing problem went away. After I fixed this (removing the 'x' but not the colon), the problem came back: my system hangs after I type the password and hit [enter].

BTW, if I don't type in a password and then hit [enter], my system doesn't hang. This suggests to me that the problem is in whatever program checks the password... perhaps this is a PAM problem? I don't really know where to start with PAM; it's pretty damn complex.

Right now I am recompiling glibc, since someone else (in another forum) suggested that glibc could be a problem if it were compiled with aggressive opts... so we'll see.

Anyone know how to cut out all the parts and replace them? I am at the point that I am actually considering just reinstalling the whole system. Ack.
 
Old 11-02-2003, 04:10 AM   #4
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
Quote:
Okay, I tried this, but I get the same problem - system hangs. Interestingly, the first time I did this, I mistakenly removed both the 'x' from the passwd file and the colon that preceded it. What resulted was an 'invalid password' error when I tried to log in, but the crashing problem went away. After I fixed this (removing the 'x' but not the colon), the problem came back: my system hangs after I type the password and hit [enter].
If you remove the x from /etc/passwd then you don't need to enter a password, just login with the user name and hit <Enter> at the password prompt.

This should work, I have used it many times when I forgot passwords. Make sure your /etc/shadow file is owned by root and only root has rw access, that can cause problems in some systems if /etc/shadow has the wrong permissions.
 
Old 11-02-2003, 10:30 AM   #5
boojummy
LQ Newbie
 
Registered: Oct 2003
Posts: 6

Original Poster
Rep: Reputation: 0
Sorry, forgot to post back- problem solved. I rebuilt my whole damn system, piece by piece, without avail, until I finally got down to the kernel. Turned out I was using an unstable kernel. Ack! Don't know how I made that mistake in the first place, but the problem is solved now.

Thanks for the advice, everyone!
 
  


Reply


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Login Screen and Login Photo problems? host Linux - Software 0 02-21-2005 06:56 AM
Login problems antipop Linux - Software 3 07-11-2004 12:59 PM
Login Problems belkira Mandriva 18 05-27-2004 10:49 PM
Problems with Login kristaps Mandriva 1 10-25-2003 07:48 AM
login problems--help!! hobylinux Linux - Newbie 3 07-19-2003 05:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:30 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