deepblu Posted April 15, 2014 Report Share Posted April 15, 2014 Fedora 19. http://olivier.sessink.nl/jailkit/ Nie mam poleceń: jk_init jk_jailuser ... Szukałem - yum whatprovides - google i nie wiem jak to zainstalować/ czemu nie mam tych poleceń, ... Link to comment Share on other sites More sharing options...
@sunrise Posted April 15, 2014 Report Share Posted April 15, 2014 Fedora 19. - googlei nie wiem jak to zainstalować/ czemu nie mam tych poleceń, ... Nie masz tych poleceń, bo nie są zainstalowane.To elementarne drogi Watsonie Program po prostu nie jest spakietowany. Musisz we własnym zakresie ściągnąć żródła programu i sam skompilować. Link to comment Share on other sites More sharing options...
deepblu Posted April 15, 2014 Author Report Share Posted April 15, 2014 OK. The provided jk_init.ini has defaults that are valid for 32bit Debian and 32bit Ubuntu Linux. Other distributions and operating systems may have files at different locations. Czy ktoś ma taki gotowy plik na Fedore? Ewentualnie może jest jakaś alternatywa dla jailkit ? Link to comment Share on other sites More sharing options...
andrew Posted April 16, 2014 Report Share Posted April 16, 2014 Procedurę instalacji masz tutaj: http://olivier.sessink.nl/jailkit/faq.html#install Link to comment Share on other sites More sharing options...
deepblu Posted April 16, 2014 Author Report Share Posted April 16, 2014 Proszę o pomoc. Pobrałem: http://olivier.sessink.nl/jailkit/index.html#download wersję jailkit-2.17.tar.bz2. Rozpakowałem. ./configure make make install . . Następnie postępuję zgodnie z instrukcjami tu:http://olivier.sessink.nl/jailkit/howtos_chroot_shell.html mkdir /home/some_jail chown root:root /home/some_jail jk_init -v -f -j /home/some_jail basicshell editors extendedshell netutils ssh sftp scp mkdir /home/some_jail/tmp chmod a+rwx /home/some_jail/tmp useradd prisoner passwd prisoner jk_jailuser -v -m -j /home/some_jail prisoner . I teraz dostaję komunikat że brakuje mi: /home/some_jail/usr/sbin/jk_lsh . więc robię jk_init -v -f -j /home/some_jail limitedshell i teraz jk_jailuser -v -m -j /home/some_jail prisoner . idzie ok. . . Jednak gdy loguje się na tego usera (w terminalu z lini poleceń) to od razu po zalogowaniu mnie wylogowywuje. Ktoś potrafi mi pomóc ? Link to comment Share on other sites More sharing options...
@sunrise Posted April 16, 2014 Report Share Posted April 16, 2014 A co pisze w logach? (/var/log/secure) Nie znam jailkita ale czy wykonałeś ten krok The entries in /etc/passwd should then look like:jane:x:1016:1016::/home/jail/./home/jane:/usr/sbin/jk_chrootsh Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now