Ciao ragazzi,
ho realizzato uno script per la creazione di un accesso SSH per ciascun utente ma che sia indipendente tra loro...

In pratica vorrei che ogni utente quasi veda un ambiente del tutto diverso rispetto ad un altro o comunque che non riesca tramite SSH ad interferire con i files di un altro user.

A seguire lo script:

if [ "$1" = "" ] || [ "$2" = "" ]; then
echo ""
echo "Uso: crea_chroot.sh nome_ambiente nome_utente_ambiente"
echo ""
exit 1
fi
echo "--> Creazione Nuovo Ambiente"

debootstrap --arch i386 gutsy /home/$1/gutsy_root http://archive.ubuntu.com/ubuntu

cp /etc/passwd /home/$1/gutsy_root/etc/
cp /etc/shadow /home/$1/gutsy_root/etc/
cp /etc/group /home/$1/gutsy_root/etc/
cp /etc/sudoers /home/$1/gutsy_root/etc/
cp /etc/apt/sources.list /home/$1/gutsy_root/etc/
mkdir /home/$1/gutsy_root/software

echo "/tmp /home/$1/gutsy_root/tmp none bind 0 0" >> /etc/fstab
echo "/dev /home/$1/gutsy_root/dev none bind 0 0" >> /etc/fstab
echo "/proc /home/$1/gutsy_root/proc proc defaults 0 0" >> /etc/fstab

echo "*** OK"

echo "--> Creazione Utente Chroot"

useradd -s /bin/bash -m -d /home/$1/gutsy_root/./home/$2 -c "$2" -g users $2
passwd $2
grep /etc/passwd -e "^$2" >> /home/$1/gutsy_root/etc/passwd

echo "*** OK"

/etc/apt/sources.list

echo ""
echo "--> Installazione librerie Aggiuntive ( confermare le installazioni ):"

chroot /home/$1/gutsy_root
sudo apt-get install --reinstall language-pack-it
sudo apt-get wget unzip
echo "*** OK"

echo "-------> SCRIPT COMPLETATO. <-------"

Secondo voi basta per avere un minimo di sicurezza?

Colgo l'occasione per domandarvi se esiste uno script o un pannello di controllo che permette di realizzare accessi voluti in tale modo...