My site currently doesnt exist but when I start working on it, it will use php and mysql so I think will be a fair test, and I would like ssh access to do mysql commands so overall I think a good test of the whole jail system.
mkdir -p $USER_HOME/usr/local/pgsql/lib
mkdir -p $USER_HOME/usr/share/terminfo/v
mkdir -p $USER_HOME/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE
if [ ! -e $USER_HOME/$USER_HOME ]; then
# Ok, we can't assume it's in /home, so create
# all directory paths like before, then delete the users home
# then create the symbolic link. If we didn't
# create the full path first, there might be
# missing directories if they've got a weird home path.
mkdir -p $USER_HOME$USER_HOME
rm -rf $USER_HOME$USER_HOME
ln -sf .. $USER_HOME$USER_HOME
fi
/usr/share/misc/termcap.db
/usr/share/terminfo/v/vt100
/usr/local/pgsql/lib/libpq.so.3
/bin/gunzip
/etc/termcap
/bin/more
Hard links cannot work over partitions because here's how a hard link works:thoroughfare said:Thanks John - hardlinking would certainly save space, if it could work over partitions.