DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2010-09-26 23:02:45

eMarcus
Member
Registered: 2009-03-08
Posts: 15

Howto make changes to /etc/passwd persistent

Hi,

I would like to make changes to the /etc/passwd file. Especially, I would like to change the homedirectory of some users. I can do that and it works fine, but whenever I reboot, the changes are gone.

How can I make changes to files in the /etc directory persistent?

Thanks,

bye
Marcus.

Offline

 

#2 2010-09-26 23:16:41

FunFiler
Member
Registered: 2010-05-23
Posts: 577

Re: Howto make changes to /etc/passwd persistent

If you don't find a better way, you could employ the same mechanism as is used to modify the cron entries. There are posts in the wiki on it. Also read this thread http://dns323.kood.org/forum/viewtopic.php?id=5972
Basically, you just create a script that runs on bootup that makes the modifications for you.


3 * (DNS-323 with 2 * 2TB) = 12TB Running FW v1.08 & FFP v0.5
Useful Links: Transmission, Transmission Remote, Automatic

Offline

 

#3 2010-09-27 18:21:27

karlrado
Member
Registered: 2009-12-07
Posts: 229

Re: Howto make changes to /etc/passwd persistent

See the ffp howto on the wiki, the section called "The root user".  Essentially you need to run "store-passwd.sh" to save your changes to the password file.  Things like the home dir and startup shell are kept in the password file, along with passwords.


DNS-323 FW 1.07 : 2 1TB WD Caviar Green SATA : fun_plug: utelnet + optware (no ffp)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB