November 30, 2015

An error occurred updating the password file!

Hello everyone, I'm new to linux and i really like it... I am facing a problem with my router which has linux embedded.
When i try passwd command it shows me this:

# passwd -u root
passwd: An error occurred updating the password file.

I think thing is something to do with permissions which are:

# ls -l /
drwxrwxr-x 2 500 500 1057 Jun 30 2013 bin
drwxrwxr-x 2 500 500 2761 Jun 30 2013 dev
drwxrwxr-x 5 500 500 873 Jun 30 2013 etc
drwxrwxr-x 3 500 500 28 Jun 30 2013 home
drwxrwxr-x 3 500 500 1112 Jun 30 2013 lib
lrwxrwxrwx 1 500 500 12 Jun 30 2013 linuxrc -> /bin/busybox
drwxr-xr-x 2 root root 40 Jan 1 03:15 mnt
dr-xr-xr-x 94 root root 0 Jan 1 00:00 proc
drwxrwxr-x 2 500 500 3 Jun 30 2013 root
drwxrwxr-x 2 500 500 123 Jun 30 2013 sbin
drwxrwxr-x 5 500 500 51 Jun 30 2013 usr
drwxrwxrwt 15 root root 340 Jan 1 00:03 var

# ls -l /etc/passwd
-rwxrwxrwx 1 500 500 684 Jun 30 2013 /etc/passwd

Who is going to help me to deal with this?

Cheers
Nik

Do you have 'chpasswd' at your disposal/have you tried it:...

Do you have 'chpasswd' at your disposal/have you tried it:

chpasswd username:password

Like  (0 likes)
Click Here!