Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- example:
- ~# useradd -d /home/sn00p/./ sn00p
- ~# cat /etc/passwd | grep sn00p
- sn00p:x:10000:10000::/home/sn00p/./:/bin/bash
- download & unpack the source:
- ~# cd /usr/src
- ~# wget http://anga.funkfeuer.at/ftp/pub/OpenBSD/OpenSSH/portable/openssh-5.3p1.tar.gz
- ~# tar zxf openssh-5.3p1.tar.gz
- download patch & apply to source:
- ~# cd /usr/src/openssh-5.3p1
- ~# wget http://www.cybnet.ch/misc/opensource/openssh-5.3p1-chroot.patch
- ~# patch -p0 < openssh-5.3p1-chroot.patch
- configure (options for GNU/Debian) & compile:
- ~# ./configure --prefix=/usr --sysconfdir=/etc/ssh --with-pam
- ~# make
- after all this i get
- ssh nethic@kaboomclothing.com -p 9999
- Debian 5.0 Lenny
- nethic@kaboomclothing.com's password:
- PTY allocation request failed on channel 0
- Could not chdir to home directory /home/users/./home/nethic: No such file or directory
- login: No such file or directory
- Connection to kaboomclothing.com closed.
- root@0x7a69:/home/users# cat /etc/passwd|grep nethic
- nethic:x:5003:100::/home/users/home/nethic/./:/bin/bash
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement