Jump to content
sleed

Tutorial SSH Jail

Recommended Posts

Posted

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, compilare

wget http://olivier.sessink.nl/jailkit/jailkit-2.17.tar.gz

tar -xzf jailkit-2.17.tar.gz

cd jailkit-2.17

./configure

make

sudo make install

// Nota : [sa aveti development tools instalat#]

2) Configurare

cd /mnt/jailuseri # [chown root:root pe /mnt/jailuseri]

mkdir -p jail/sleed

jk_init -v -j /mnt/dex/jail/sleed basicshell

adduser sleed

passwd salam

...

jk_jailuser -m -s /bin/bash -j /mnt/jailuseri/jail/sleed sleed

mkdir jail/sleed/tmp

chmod a+rwx jail/sleed/tmp

[h=2]### Sa adaugati alti useri, faceti ca la pasul II.[/h]

Ajutor:...

jk_init --help
jk_jailuser --help
jk_cp --help

  • Upvote 2

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...