sleed Posted December 14, 2014 Report Posted December 14, 2014 Acest tutorial prezinta un mijloc de a limita privilegiile unui user doar pentru folderul sau. Daca avem un server cu un numar foarte mare de useri, care folosesc pentru access, sftp/ssh, ar fi bine folosit ssh jail. [in caz ca sunt probleme de autentificare la internet, pentru un utilizator, copiaza /etc/resolv.conf pentru cei in jailed sau adauga netbasics pentru jk_init.1) Instalare, compilarewget http://olivier.sessink.nl/jailkit/jailkit-2.17.tar.gztar -xzf jailkit-2.17.tar.gzcd jailkit-2.17./configuremakesudo make install// Nota : [sa aveti development tools instalat#]2) Configurare cd /mnt/jailuseri # [chown root:root pe /mnt/jailuseri]mkdir -p jail/sleedjk_init -v -j /mnt/dex/jail/sleed basicshelladduser sleed passwd salam ...jk_jailuser -m -s /bin/bash -j /mnt/jailuseri/jail/sleed sleedmkdir jail/sleed/tmpchmod a+rwx jail/sleed/tmp [h=2]### Sa adaugati alti useri, faceti ca la pasul II.[/h]Ajutor:...jk_init --helpjk_jailuser --helpjk_cp --helpLinux.com :: Put your OpenSSH server in SSHjail 2 Quote