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 2011-01-12 16:22:40

scaryraz
New member
Registered: 2011-01-12
Posts: 1

Script New Group and User Not Disappears On Reboot

hey,

I saw the group and user have been added to the /etc/group and /etc/passwd files. Upon reboot the group and user disappear.
I saw Because all the /etc/* information is stored on a RAM Drive.  The RAM drive is erased as soon as the unit is powered off.

But I want to know how to create a script to copy the data into a directory, and during reboot the users and their laws are always present.


Thanks
ted

Offline

 

#2 2011-01-12 20:45:02

rsd76
Member
Registered: 2010-04-18
Posts: 47

Re: Script New Group and User Not Disappears On Reboot

I think the /ffp/sbin/store-passwd.sh script does what you want.
If copies the passwd, group, shadow smbpasswd ftp_tbl and ftpgroup to the flash memory of your unit.

Please be carefull. Please check the files before you store them in flash.  If the are corrupted problem may occur.


Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us. (Calvin & Hobbes)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB