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.

#1 2008-08-16 21:59:31

Priet
Member
Registered: 2008-07-21
Posts: 12

Home folder empty after a reboot

Everytime I reboot my CH3SNAS my /home/root/ folder is completely empty! No single file is left, even the .ssh folder is gone.

I use fun_plug 0.5.

Is this normal behaviour or am I doing something wrong perhaps?

Offline

 

#2 2008-08-16 22:21:09

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Home folder empty after a reboot

that's normal for all folders on the ramdisk.
your options are: a) copy files on startup, b) change root's home dir (e.g. usermod -d /mnt/HD_a2/root root)

Offline

 

#3 2008-08-17 14:52:30

Priet
Member
Registered: 2008-07-21
Posts: 12

Re: Home folder empty after a reboot

Thanks for the quick reply!

I tried b) change root's home dir with usermod and it worked, thans smile

I've made following startup-script so that it's done automatically on startup:

Code:

#!/ffp/bin/sh

# PROVIDE: mvhomeroot

. /ffp/etc/ffp.subr

name="mvhomeroot"
start_cmd="mvhomeroot_start"
stop_cmd=:

mvhomeroot_start()
{
    echo "Moving root's home folder..."
    usermod -d /mnt/HD_a2/home/root/ root
}

run_rc_command "$1"

Saved as 'mvhomeroot.sh' in /ffp/start.

Any comments on this one?

Last edited by Priet (2008-08-17 14:53:16)

Offline

 

#4 2010-05-31 01:57:31

czerwinski1977
New member
Registered: 2010-05-31
Posts: 1

Re: Home folder empty after a reboot

I achieved an even simplier solution by modifying the home directories in /etc/passwd and storing these settings to disk via store-passwd.sh

Offline

 

#5 2010-06-07 20:50:34

ebullient
New member
Registered: 2010-06-07
Posts: 1

Re: Home folder empty after a reboot

czerwinski1977 wrote:

I achieved an even simplier solution by modifying the home directories in /etc/passwd and storing these settings to disk via store-passwd.sh

I've tried doing this a few times, and now (while running ffp on USB stick), every time I reboot, the few users I've changed (and saved via store-passwd.sh!!) are reset to /home/ftp... no idea how this is happening?!

Offline

 

#6 2010-06-13 20:50:12

southbird
New member
Registered: 2010-06-13
Posts: 1

Re: Home folder empty after a reboot

I've noticed that behavior, too.  The actual /etc/passwd stored in the flash system is still correct, but at boot time the device changes all the home directories to /home/ftp.  Very annoying.  I had to add a quick sed script to run at startup and correct them.  I suppose it's a "feature" most likely for the built-in ftp server, which makes sense but annoys us.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB