NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NetBSD 5.xx - Chroot Jail Configuration



Hi Richard,
 You could do it with mknod, you need follow this steps:
1. Look what kind of file you want to built:
ls -l /dev/tty
crw--w----  1 userx  tty    0,  92 Oct 26 10:18 /dev/tty

2. create a file with this features:
cd /opt/chroot/sshd/dev
mknod tty c  0 92  user:tty
you must to repeat the values from the "original file"

pd: sorry by my english



2009/10/25 Richard Ibbotson <richard.ibbotson%gmail.com@localhost>:
> Hello there
>
> I've been Googling for the past week for this.  I came to the
> conclusion that RSSH or SCP only would do the job.  After having an
> accident with Google and putting the wrong thing into the search
> engine I found this........
>
> http://larripa.net/netbsd/chroot_sshd.html
>
> Which should do the job.  I'm used to SCP only.  Works once you know
> what you are doing with it.  I started on this and made it up to the
> point where it tells you ...
>
> " Next we create the needed device files
> # cd /opt/chroot/sshd/dev
> # /dev/MAKEDEV std pty0 tty random"
>
> at which point everything stops with an error message...
> "/dev/MAKEDEV: tty: unknown device".
>
> Can anyone suggest what to replace /dev/MAKEDEV std pty0 tty random
> with so that I can finish this off ?
>
> Regards
>
> --
> Richard
>



-- 
---------------------------------------
-   El conocimiento es poder   -
- y el saber nos hace libres.    -
----------------------------------
netvulcano.wordpress.com
Linux User #405757
Machine Linux #310536


Home | Main Index | Thread Index | Old Index