This is an old revision of the document!
How to change the homedirectory for users?
This is important if you want multiple users to access your NAS through SSH, or just simple have a home directory for settings in shell commands such as midnight commander. By default, new users made on the webinterface do not have a home directory. First thing to do is create those directories and give ownership:
mkdir /ffp/home;
mkdir /ffp/home/test;
chown test /ffp/home/test/
Because NAS resets the Home directory of the users (i dunno why), create a startup script that changes the homedirectory for the users:
echo ”!/bin/sh” > /ffp/start/sethomes.sh;
echo “usermod -d /ffp/home/test test” » /ffp/start/sethomes.sh;
chmod +x /fpp/start/sethomes.sh
If you like you home directory available through /home, next to root and ftp, which is more elegant then do the following:
echo ”!/bin/sh” > /ffp/start/sethomes.sh;
echo “ln -s /ffp/home/test/ /home/test”;
echo “usermod -d /home/test test” » /ffp/start/sethomes.sh;
chmod +x /fpp/start/sethomes.sh
That's it.