PDA

View Full Version : Cannot log in as standard user! (incorrect username or password)


ukdelinquent
2004-06-30, 05:27 AM CDT
Hi - i have finally made the leap accross to linux on my main PC. Everything was going great for about 2 weeks - i was figuring stuff out - nothing really fazed me. I was starting to think hey this is really cool - then lockout!

Basically when i try to log in under my user account i get "incorrect username or password" - i know im typing the correct details. - i reset the password and still got the same thing.

When i log in as root (bad i know but only soloution available to me) and look at the security log i get all these messages relating to my user account log in failure.

It says something along the lines of "uid not <100 for user "example"

the account "example" has the standard uid of 500 and so does its associated group.

I know how to change the UID for the account but i dont think that is a great soloution. I need to know what it is that wants the account "example" to have a UID of <100.

I dont recall changing anything to make this all happen - i just rebooted i think and bingo no log in!

Please help....

unixroot
2004-06-30, 01:41 PM CDT
hi there
as i know that if you have lost or forget your user passward the only thing that you should do is to log in as root kde or genom and go to system sitting and then to user and group when it opens hightlinght user and properties you can change the passward from there and then log out to the user account and use the new passward

thankyou

unixroot
2004-06-30, 01:42 PM CDT
undefinedundefined:cool: hi there
as i know that if you have lost or forget your user passward the only thing that you should do is to log in as root kde or genom and go to system sitting and then to user and group when it opens hightlinght user and properties you can change the passward from there and then log out to the user account and use the new passward

thankyou

ukdelinquent
2004-06-30, 05:36 PM CDT
You miss the point i havent forgot my password i am having authentication and authorisation issues...

ghaefb
2004-06-30, 05:53 PM CDT
Check if your user uid is really greater or equal than 500.
Also look in /etc/passwd and check your uid.
You can try changing your uid form 500 to 501, or remove then add your account.

This really is a strange problem...

ukdelinquent
2004-06-30, 07:23 PM CDT
ok got back to the machine - exact message is :-

gdm[2336]: pam_succeed_if: requirement "uid < 100" not met by user "example"

got it back to front earier!

ukdelinquent
2004-06-30, 07:31 PM CDT
just created another account - still have same problem - it appears something requires all non root accounts to have uid < 100 ! what it is i dont know.

however looking at the log pam_succeed_if: requirement - surely this must mean that pam(whatever it is) has a "requirement" somewhere for uid <100.

bradthemad
2004-07-01, 01:23 AM CDT
surely this must mean that pam(whatever it is) has a "requirement" somewhere for uid <100.

No, and don't call me Shirley.

Those messages are from pam, which is being more verbose than it needs to be in this case. Pam stands for Pluggable Authentication Modules; it provides an easy way to configure any number of backends and rules for authentication. It is doing a check for a UID under 100, but it is not a requirement; the same thing is logged even when you login successfully. This output is a known bug (https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=124979).

Do you have anything else in either the messages or secure log related to the times you've been unable to login?

ukdelinquent
2004-07-01, 03:28 AM CDT
Here is more of the log.

Jun 29 22:23:56 reddsk sshd[1969]: Server listening on :: port 22.
Jun 29 22:23:56 reddsk sshd[1969]: error: Bind to port 22 on 0.0.0.0 failed: Address already in use.
Jun 29 22:24:22 reddsk gdm[2370]: pam_succeed_if: requirement "uid < 100" not met by user "example"
Jun 29 22:24:50 reddsk xinetd[1984]: START: sgi_fam pid=2500 from=<no address>
Jun 29 22:25:39 reddsk userhelper[2656]: pam_timestamp: updated timestamp file `/var/run/sudo/root/unknown'
Jun 29 22:25:39 reddsk userhelper[2657]: running '/usr/sbin/system-config-packages' with root privileges on behalf of 'root'
Jun 29 22:33:58 reddsk sshd[1969]: Received signal 15; terminating.

tlobo
2004-08-03, 11:08 AM CDT
In order to get ssh working for users with ID's above 100, edit the /etc/pam.d/sshd
file and change the attributes on the following 2 lines to optional instead of required :

session optional pam_stack.so service=system-auth
session optional pam_limits.so

Be aware this may have security implications as you are bypassing these checks.