-2

This question already has an answer here:

we installed new server redhat version - 6.7 from kick start,

after installation complete successfully we get the login prompt

but I am unable to login locally on my redhat linux 6.7 server.

The login prompt keep getting again and again , and I cant get the passwd prompt

I restart the machine and access VIA single user mode ,

But can’t understand what are the files/conf that caused this issue or maybe something else?

please advise how to resolve this problem

from /var/log/secure

 17:35:47 linux_test login: permission denied 

marked as duplicate by kasperd, Ward, HBruijn Apr 18 '16 at 8:23

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • What error messages do you get in /var/log/secure? – Andy Apr 13 '16 at 18:02
  • in secure log I get near the login word - permission denied – dandan Apr 13 '16 at 18:17
  • login: permission denied – dandan Apr 13 '16 at 18:18
  • 1
    Can you paste the whole line? You want to know what (presumably PAM module) is denying you – Andy Apr 13 '16 at 18:20
  • please see the update – dandan Apr 13 '16 at 18:26
0

Edit the kernel booting options, change ro init=/sysroot/bin/sh to rw init=/sysroot/bin/sh and boot CentOS. When logged in, follow these commands:

chroot /sysroot
passwd root
touch /.autorelabel
reboot

You now should be able to loggin as root user.

Source

  • on which file need to change to rw init=/sysroot/bin/sh ?? – dandan Apr 14 '16 at 14:00
  • When on the grub, press 'e', then go to 'kernel' and edit that. Anyways, you should have a look at the link I posted as it's easy to see how to do that – sysfiend Apr 14 '16 at 14:03

Not the answer you're looking for? Browse other questions tagged or ask your own question.