[BusyBox] /etc/shadow question

Nick Fedchik fnm at fusion.ukrsat.com
Wed Feb 5 07:15:03 UTC 2003


Hi ALL!

Nothing important, just the request to help me to solve problem explained
below.

I boot my BusyBox-powered system from ramdisk.
I deploy ramdisk image form disk to memory and all works ok.
I need to add/del a few users and change it passwords, so I need to save
configuration, but leave all other files (it has not only one "busybox"
binary) untouched.
After that I need to store this my changed /etc/{passwd|shadow} and restore
changed files after reboot.
I use my defined /etc/inittab, so my first idea (to mount yet another
image directly to /etc) was unrealized.
When I tried to do this by various ways, I have stubled on next "stone":
softlink /etc/shadow -> /another/place/of/my/real/shadow,
"passwd <user>" changed softlink to real file /etc/shadow :(

I don't think when to save all ramdisk back to hard disk is a good idea.

Now I see only one solution - to do a patch for BusyBox to predefine another
way for "shadow" database.

I hope that someone has experience for situation like above and can show me
the rigth way. Any ideas are welcome.

-- 
Nick Fedchik, FNM3-RIPE(UANIC)
Internet Dept./ISP UkrSat, Kiev, Ukraine



More information about the busybox mailing list