Advertisement
Guest User

nethic

a guest
Jan 22nd, 2010
390
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. example:
  2. ~# useradd -d /home/sn00p/./ sn00p
  3. ~# cat /etc/passwd | grep sn00p
  4. sn00p:x:10000:10000::/home/sn00p/./:/bin/bash
  5.  
  6.  
  7. download & unpack the source:
  8. ~# cd /usr/src
  9. ~# wget http://anga.funkfeuer.at/ftp/pub/OpenBSD/OpenSSH/portable/openssh-5.3p1.tar.gz
  10. ~# tar zxf openssh-5.3p1.tar.gz
  11.  
  12. download patch & apply to source:
  13. ~# cd /usr/src/openssh-5.3p1
  14. ~# wget http://www.cybnet.ch/misc/opensource/openssh-5.3p1-chroot.patch
  15. ~# patch -p0 < openssh-5.3p1-chroot.patch
  16.  
  17. configure (options for GNU/Debian) & compile:
  18. ~# ./configure --prefix=/usr --sysconfdir=/etc/ssh --with-pam
  19. ~# make
  20.  
  21. after all this i get
  22. ssh nethic@kaboomclothing.com -p 9999
  23. Debian 5.0 Lenny
  24. nethic@kaboomclothing.com's password:
  25. PTY allocation request failed on channel 0
  26. Could not chdir to home directory /home/users/./home/nethic: No such file or directory
  27. login: No such file or directory
  28. Connection to kaboomclothing.com closed.
  29.  
  30. root@0x7a69:/home/users# cat /etc/passwd|grep nethic
  31. nethic:x:5003:100::/home/users/home/nethic/./:/bin/bash
  32.  
  33.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement