-2

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

1 Answer 1

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

2
  • on which file need to change to rw init=/sysroot/bin/sh ??
    – dandan
    Apr 14, 2016 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, 2016 at 14:03

Not the answer you're looking for? Browse other questions tagged .