linux + when change passwd we get permission denied

7,926

you are in single user mode so you don't specify users

make sure your root filesystem is mounted in read/write

mount -o remount,rw /

then

passwd
Share:
7,926

Related videos on Youtube

dandan
Author by

dandan

Updated on September 18, 2022

Comments

  • dandan
    dandan over 1 year

    We have installed Redhat Linux 6.5 from scratch the VIA kick start installation and booted into single user mode because I don't have the root password.

    But when I perform the following:

    passwd root
    changing password for user root
    passwd: permission denied 
    

    Please advice what are the reasons that I get permission denied and how to resolve the problem.

  • dandan
    dandan about 8 years
    I still get permission denied
  • Sum1sAdmin
    Sum1sAdmin about 8 years
    does the prompt say root@host ?
  • dandan
    dandan about 8 years
    yes I get root@linux_test
  • Sum1sAdmin
    Sum1sAdmin about 8 years
    was this server joined to ldap? you may need to look into your /etc/nsswitch.conf in the meantime tell passwd you want to use the local possword file and not reset an ldap password, try: passwd -r files root
  • dandan
    dandan about 8 years
    no - this server not joined to the ldap
  • Sum1sAdmin
    Sum1sAdmin about 8 years
    passwd -r files root
  • dandan
    dandan about 8 years
    when I run this I get passwd bad argument -r
  • dandan
    dandan about 8 years
    I have redhat release 6.7
  • Koen van der Rijt
    Koen van der Rijt about 8 years
    were u able to fix the problem? I was curious
  • dandan
    dandan about 8 years
    no still not I have the same problem