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
Related videos on Youtube
Author by
dandan
Updated on September 18, 2022Comments
-
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 about 8 yearsI still get permission denied
-
Sum1sAdmin about 8 yearsdoes the prompt say root@host ?
-
dandan about 8 yearsyes I get root@linux_test
-
Sum1sAdmin about 8 yearswas 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 about 8 yearsno - this server not joined to the ldap
-
Sum1sAdmin about 8 yearspasswd -r files root
-
dandan about 8 yearswhen I run this I get passwd bad argument -r
-
dandan about 8 yearsI have redhat release 6.7
-
Koen van der Rijt about 8 yearswere u able to fix the problem? I was curious
-
dandan about 8 yearsno still not I have the same problem