This is a discussion on Cannot Login within the CentOS / RHEL / Fedora forums, part of the Linux Distribution category; HI, I have got a problem with my login. I am not able to login through local console or ssh ...
|
|||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
|||
|
HI,
I have got a problem with my login. I am not able to login through local console or ssh to my machine. In sshd_config file, i have changed the port no. Used DenyUsers, DenyGroups, AllowUsers and blocked the root login. I also used the /etc/hosts.allow to deny some domains, sshd: .hinet.net deny I tried to take backup using this command tar -zcvpf /archive/full-backup-`date '+%d-%B-%Y'`.tar.gz \ --directory / --exclude=mnt --exclude=proc --exclude=var/spool/squid but it never worked. Now i am not able to login to my machine through ssh or local console. In local console when logging in, it falls back to the login screen saying "Authentication Failure" in a flash. Please help me get out of this soup. Thanking you all in advance. |
| Sponsored Links | ||
|
|
|
|||
|
Thanks for ur comment. I would like to know whether any of my configuration files will be affected if get in to single user mode and also can i be able to access the / filesystem in single user mode. Please give me suggestions.
I am using CentOS now .. can i boot up with RHEL 4.0 cd to get in to single user mode ? Last edited by mvibin; 04-29-2008 at 04:03 PM. |
|
|||
|
You need to use CentOS cd only to boot into emergency mode. You can access / in a single user mode. To fix this problem at Grub boot screen:
Code:
mount -t proc proc /proc mount -o remount,rw / Code:
passwd root Linux: Grub Boot into single user mode Linux reset forgotten root password How to: Recovering Linux grub boot loader password |
|
|||
|
Thans for ur comment. Do i need a bootup disk to get the Single User mode? If my filesystem is not corrupted then y should i remount the / partition? If i should, then how? How can i edit the sshd_config file from Single user mode? Is vi command available in Single User Mode? Can we edit the conf file with cat command? The grub boot screen is the splash image which enable us to select the OS, isn't it ? U are asking me to select the OS and press e to edit .. right ?
Can you explain in steps what should i do to get it fixed? Please help me. Thanking you in advance. |
|
|||
|
Thanks a lot for all ...
I have fixed that problem, the steps i followed are, 1. Boot in to Single User Mode. 2. Corrected some configuration files using vim editor. 3. Restart the system forcing a file check with the command. shutdown -rF now Once again thanks for all ... |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Unable to login !!! | raina_ajeet | Linux software | 5 | 01-16-2008 01:22 AM |
| dovecot: pop3-login: pop3-login: error while loading shared libraries: libsepol.so.1 | raj | Mail Servers | 1 | 11-15-2007 10:43 AM |
| login | sparky | Shell scripting | 1 | 06-26-2006 07:17 PM |
| How do I Double KDM (KDE) Login Screens? | tom | Linux software | 1 | 06-09-2005 02:34 PM |
| Login Without asking password | sonaikar | Linux software | 1 | 02-20-2005 04:46 PM |