linux login problem
i logged out last night fine after using it for 2 hours. and now when i try to login as root it popup a window saying
your account has expired contact your system administrator. and at the bottem it says that the admin says blocked your account. i tried to login with my backup account and same message appears there and i also tried an account created when i was loggedin last time and same message appears then also. |
Can you login at any other runlevel? Try logging in at Runlevel 3. If that works it might be an X related problem or the permissions for /etc/securetty might have been changed.
If you can't login at runlevel 3, login to single usermode by typing init=/bin/sh at the end of the kernel line on the grub menu. Check if your /etc/shadow file is intact. |
Assuming that you own this system, simply log in in single user mode. (When the grub screen appears, hit any key to stop the countdown, and then e for edit. Select the kernel line and add "single" to the end---then reboot)
If this does not work, then the ultimate weapon is a live CD. Boot up from the CD, mount the drive with your Linux system, find /etc/passwd and edit it to remove the "x" after root. The entry will wind up looking like this: root::0:0:root:/root:/bin/bash -----^---x removed When you reboot, you will be able to log in as root with no password |
Thats another way of doing it. But some distributions have agetty or mingetty on single user mode as well so you might not be able to login at that runlevel either. You can bypass the login altogether by specifying: init=/bin/sh at the end of the kernel line on the grub menu.
Once you get the shell prompt, you can mount the root partition read-write: mount -o remount,rw / I don't know about removing the x from /etc/passwd though Pixellany. If the OP boots up at runlevel 3-5 its leaving him wide open for intrusions. Better to find the root of the problem and keep that as a last resort :twocents: |
its not a matter of security because no one but me have access to my computer and i don't use internet through my linux at all, and don't intend to do so much in near future.
and i don't know about grub because its all grapical using kde. after i select it from my os menu while booting, it is all automatic, it starts all the service it self and at one stage it ask for interactive setup, which if selected only ask wheter to start a service or not and no other command can be entered. i can do the live cd option. because my installed version in redhat9 and i also own a suse linux 9.0 live cd. i will post the result after trying it. |
Problem has been solved.
SlackDaemon your idea of init=/bin/sh didn't worked and i don't know how to use runlevel3. pixellany putting single at the end of kernel line in grub worked and opened shell prompt. SlackDaemon your 2nd idea of mount on shell prompt didn't gave any error but didn't solved it either. Solution: i turned my system clock 1 year back to 2006 in bios. and i was able to login. i loged back out only to check that does this work again and turned clock to 2007 and again the same error of account expiration. so i turned it back to 2006 and loged back in. in user properties i disabled the option of password expiration in both root and my 2nd account, and also put account expiring on root till 2008. i restarted and put clock back to 2007 and i was able to login without any problem to both accounts, so it was problem with password expiration which is default in linux and have to be disabled by yourself. |
Quote:
Quote:
Glad that you sorted it out though. |
well i put init=/bin/sh at the same spot i did single but for some reasons it didn't work.
|
Quote:
You should thoroughly check your system to make sure no one else has tampered with it. Check where the sh file is by typing which sh. It'll give you the location. |
All times are GMT -5. The time now is 10:13 AM. |