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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-26-2003, 04:25 PM
|
#1
|
LQ Newbie
Registered: Oct 2003
Posts: 6
Rep:
|
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
|
|
|
10-26-2003, 06:46 PM
|
#2
|
Senior Member
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802
Rep:
|
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
|
|
|
10-27-2003, 06:26 PM
|
#3
|
LQ Newbie
Registered: Oct 2003
Posts: 6
Original Poster
Rep:
|
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.
|
|
|
11-02-2003, 04:10 AM
|
#4
|
Senior Member
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802
Rep:
|
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.
|
|
|
11-02-2003, 10:30 AM
|
#5
|
LQ Newbie
Registered: Oct 2003
Posts: 6
Original Poster
Rep:
|
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!
|
|
|
All times are GMT -5. The time now is 11:45 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|