PDA

Bekijk de volledige versie : passwd file lost



ncd
15-04-2008, 19:33
Hi!

I've installed Oleg's 1.9.2.7-10 firmware, wanted to add some extra users with adduser. The users were added to the /etc/passwd file. After flashfs save && flashfs commit && flashfs enable && reboot the /etc/passwd only contains the admin and nobody users, the rest is gone.

What am I doing wrong?

DrChair
15-04-2008, 20:10
You need to enter


echo "/etc/passwd" >> /usr/local/.files

before you add users and flashfs save && flashfs commit && flashfs enable && reboot.

This way flashfs knows that it also has to save /etc/passwd into the flash.

ncd
15-04-2008, 20:26
You need to enter


echo "/etc/passwd" >> /usr/local/.files

before you add users and flashfs save && flashfs commit && flashfs enable && reboot.

This way flashfs knows that it also has to save /etc/passwd into the flash.

Thanx, it worked! :)