LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 11-26-2007, 08:44 PM   #1
ron7000
Member
 
Registered: Nov 2007
Location: CT
Posts: 248

Rep: Reputation: 26
all user accounts and root locked out, why and how fix?


hello,
recently installed SUSE Linux Enterprise Server (SLES) 10 on an SGI Altix 350,
system has been running since last wednesday, today is monday.

This morning I used yast to disable a few user accounts, maybe 4 or 5 out of the 15 on the system; I had been logged in as root through a vnc session. The vnc went idle 3 or 4 times and i got a suse screen lock from it but was able to enter the root password and unlock it. I also did a 'su' within an ssh terminal on my pc to reset a general user's password, and then he was able to log in from his computer into the altix. I also tried a few times with 'smbpasswd' from the root account to unlock the same general user's account, and finally succeeded.

I come back from lunch, try to unlock the screensaver in my root vnc session and get password invalid.
From my open SSH terminal to my general user account, I try an 'su' and get password invalid.
And opening a new SSH terminal, to either root or my own general user account, I get password invalid.
And for all other general users, including the one guy I personally reset 2 hours earlier, all get password invalid.

a) What the hell would cause this?

b) Could an option with 'smbpasswd' logged in as root somehow disable all user accounts?

c) Is YAST buggy? I had done a 'pwunconv' a few days previous so I could read the /etc/passwd fiile, and when I had used yast this morning it gave me an error when trying to write files, but exited cleanly. I then did a 'pwconv' and then went back through yast to modify some users and it wrote the passwd/shadow files no problem.

d) having what seems to be all accounts including root locked out, (and nobody can log in! ) what's the best way to fix the problem? i understand booting from the SLES 10 dvd in rescue mode but have an issue with console output, need 'console=ttyg0' or something and until i figure that out i can't really boot in rescue mode from the dvd... don't have an actual terminal off the altix, have to log in to the L2 terminal with a telnet session and output to the screen is very tempermental.
I did try booting from the EFI shell, using ELILO and booted the kernel from fs0:\efi\sgi (primary hard disk) with the boot option 'init=/bin/bash' and it tries booting but ends with a "kernal panic" error of all things!!! It boots to some funky kbd prompt, and it isn't a bash shell and the mount or passwd commands do not work. please help, i think i'd be ok if i could just reset the damn root passwd.

Last edited by ron7000; 11-26-2007 at 08:45 PM.
 
Old 11-27-2007, 10:23 AM   #2
ron7000
Member
 
Registered: Nov 2007
Location: CT
Posts: 248

Original Poster
Rep: Reputation: 26
well i got the stupid thing fixed,
was able to boot in linux single user mode, using init=/bin/bash
and the 'passwd' command allowed me to change the root password (without prompting for old password).
then I could log in normally, as root, and fix all the accounts.

the really wierd thing, every account in /etc/passwd was locked !!!
but, it only shows up as 'LK' if I did a 'passwd -Sa'.
if i edited /etc/passwd there was an 'x' in the password field, and looking at
/etc/shadow everyone has, and continues to have, a long string of characters for a password.
If the account was locked, wouldn't there be a '!' in the password field in /etc/shadow?

I can go in yast2 and do user management and the 'disable login' is not checked for anybody!

If i do a 'passwd -U' to unlock a user's password, it gives an error and says password cannot be unlocked.

I had to do, as root, 'passwd <userid>' and manually reset everyone's password to unlock the account.
Anybody know what is going on?

I also did a 'pam_tally' and it reports nothing. After cleanly installing SLES 10, I don't remember seeing anything PAM related. Is it automatically installed, or inherent, in SLES 10?

will be asking this question in linux general.


in case someone needs it, the way I booted was:

- at the boot prompt, hit a key before it times out and auto boots, and boot to EFI shell (built in).
- type: 'fs0:' this is boot drive for me
- type: 'cd efi'
- type: 'cd suse' ...could probably go into the sgi directory also.
- type: 'elilo' and then hit tab immediately afterwards to see bootable kernels. Under the suse directory
it listed 'linux' and 'failsafe'. If it was under the sgi directory, it would probably be something more
specific. I believe either directory would work, but i went with the suse directory.
- at the elilo boot promt, type: 'linux single init=/bin/bash console=ttySG0 vnc=1'
for sgi directory i'm sure it would be something like:
'2.4.21-sgi305r1 single console=ttySG0 init=/bin/bash vnc=1'

this successfully booted me to a prompt, as root, where i could simply do 'passwd' and set the root
password. The console=ttySG0 is important for me because I need to use a telnet session into the machine
since it has no graphics card nor monitor hooked up to it; I go through the L2 over ethernet and have a
usb to ethernet adapter coming off L2 usb port and static ip already set for the L2. Whoever wrote
"welcome to linux have fun" should be shot.
 
Old 11-27-2007, 12:02 PM   #3
Fred Caro
Senior Member
 
Registered: May 2007
Posts: 1,007

Rep: Reputation: 167Reputation: 167
Dear sir,
I suspect some foul play with the original problem although how to replace your root password is inte esting.' Linux for dummies' has a solution but I don' trust it.
 
Old 12-02-2007, 11:38 PM   #4
naveenth
LQ Newbie
 
Registered: Jul 2007
Posts: 3

Rep: Reputation: 0
help me

i used this bu it also didnot worked why is that?there is a massege end of that show # but cant write any thing in the screen.plz help me to log as root in to my school compiters
 
  


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
Adding root privaliges to user accounts or auto login as root Val-Ent Linux - General 15 03-02-2010 04:27 PM
Suse 10.2 locked me out as user or root Pumalite Linux - Software 20 04-11-2007 10:28 AM
Mandriva 2007, login help - I am being locked out of my admin and root accounts uzimadawa Linux - Newbie 7 01-28-2007 02:04 PM
I can't switch user accounts in Mandrake 10.1 CE!! How do I fix that??? Ausar Linux - Newbie 3 10-07-2004 10:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

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