|
Re: [Lug-bg] Някой играл ли си е с jailkit?
- Subject: Re: [Lug-bg] Някой играл ли си е с jailkit?
- From: Georgi Alexandrov <georgi.alexandrov@xxxxxxxxx>
- Date: Tue, 16 Jun 2009 20:42:48 +0300
- Openpgp: url=http://pgp.mit.edu/
Kristian Kirilov wrote:
Здравейте,
свалих сорса, ./configure && make && make install, всичко минава fine.
Следвам урока в официалния сайт
http://olivier.sessink.nl/jailkit/howtos_chroot_shell.html. За съжаление
стигам до следната ситуация.
root@217-18-252-139:~# ssh d3v1ous@localhost
d3v1ous@localhost's password:
Linux 217-18-252-139 2.6.26-2-686 #1 SMP Thu May 28 15:39:35 UTC 2009 i686
Last login: Tue Jun 16 16:56:03 2009 from localhost
Connection to localhost closed.
root@217-18-252-139:~# tail /var/log/auth.log
Jun 16 17:05:47 217-18-252-139 sshd[2748]: Accepted password for d3v1ous
from 127.0.0.1 port 44539 ssh2
Jun 16 17:05:47 217-18-252-139 sshd[2748]: pam_unix(sshd:session):
session opened for user d3v1ous by (uid=0)
Jun 16 17:05:47 217-18-252-139 jk_chrootsh[2752]: now entering jail
/home/jail for user d3v1ous (1000)
Jun 16 17:05:47 217-18-252-139 sshd[2748]: pam_unix(sshd:session):
session closed for user d3v1ous
root@217-18-252-139:~#
До тук свършва всичко.. никакво инфо, защо, как, кое не може да се
достигне, права, въбоще... под всякаква критика.
Опитах да сменя шела в /etc/password на /bin/bash, логвам се, работя и с
sftp. Опитвам да изпълня chroot shell-a, изпълявам го, но chroot не
получавам.
d3v1ous@217-18-252-139:~$ /usr/sbin/jk_chrootsh
d3v1ous@217-18-252-139:~$ ls
d3v1ous@217-18-252-139:~$ cd /
d3v1ous@217-18-252-139:/$ ls
bin dev initrd.img media proc selinux tmp vmlinuz
boot etc lib mnt root srv usr
cdrom home lost+found opt sbin sys var
d3v1ous@217-18-252-139:/$
Ако имате някакви идеи :)
Поздрави
К.Кирилов
_______________________________________________
Lug-bg mailing list
Lug-bg@xxxxxxxxxxxxxxxxxx
http://linux-bulgaria.org/mailman/listinfo/lug-bg
http://en.wikipedia.org/wiki/Strace
--
regards,
Georgi Alexandrov
key server - pgp.mit.edu :: key id - 0x37B4B3EE
Key fingerprint = E429 BF93 FA67 44E9 B7D4 F89E F990 01C1 37B4 B3EE
Attachment:
signature.asc
Description: OpenPGP digital signature
_______________________________________________
Lug-bg mailing list
Lug-bg@xxxxxxxxxxxxxxxxxx
http://linux-bulgaria.org/mailman/listinfo/lug-bg
|
|
|