Hallo,
ich wollte unter OpenBSD 4.0 mal sysjail testen. Bin nach dieser Anleitung vorgegangen http://sysjail.bsd.lv/docs-example.html.
Nach dem Aufruf von:
sysjail -i /home/sysjail00/ sysjail.bsd.lv 192.168.15.51 /bin/sh /etc/rc </dev/null &
kommt folgende Ausgabe:
SSH funzt damit gar nicht und wenn ich ein chroot auf /home/sysjail00/ mache, kommt folgendes:
Und jeder Befehl landet irgendwie im Hintergrund. Hab auch schon mksysjail-dev -c ssh usw. ausprobiert.
Hab ich bei der ganzen Sache was übersehen oder vergessen ?
gruß
penguin
ich wollte unter OpenBSD 4.0 mal sysjail testen. Bin nach dieser Anleitung vorgegangen http://sysjail.bsd.lv/docs-example.html.
Nach dem Aufruf von:
sysjail -i /home/sysjail00/ sysjail.bsd.lv 192.168.15.51 /bin/sh /etc/rc </dev/null &
kommt folgende Ausgabe:
Code:
stty: not a terminal
fstab: /etc/fstab: Inappropriate file type or format
/etc/rc[200]: cannot create /dev/null: Device not configured
fstab: /etc/fstab: Inappropriate file type or format
mount_ffs: /dev/wd0a on /: Invalid argument
setting tty flags
starting network
hostname: sethostname: Operation not permitted
ifconfig: SIOCDIFADDR: Operation not permitted
/etc/rc: /etc/netstart[282]: cannot create /dev/null: Device not configured
/etc/rc: /etc/netstart[333]: cannot create /dev/null: Device not configured
/etc/rc: /etc/netstart[362]: cannot create /dev/null: Device not configured
/etc/rc: /etc/netstart[370]: cannot create /dev/null: Device not configured
/etc/rc[260]: cannot create /dev/null: Device not configured
/etc/rc[261]: cannot create /dev/null: Device not configured
/etc/rc[273]: cannot create /dev/null: Device not configured
/etc/rc[273]: cannot create /dev/null: Device not configured
/etc/rc[278]: cannot create /dev/null: Device not configured
install: utmp: chflags: Operation not permitted
starting system logger
syslogd: Couldn't open /dev/null: Device not configured
starting initial daemons:.
fstab: /etc/fstab: Inappropriate file type or format
fstab: /etc/fstab: Inappropriate file type or format
savecore: /bsd: kvm_openfiles: /dev/mem: No such file or directory
checking quotas:fstab: /etc/fstab: Inappropriate file type or format
quotacheck: Can't open checklist file: /etc/fstab
done.
fstab: /etc/fstab: Inappropriate file type or format
fstab: /etc/fstab: Inappropriate file type or format
building ps databases: kvmkvm_mkdb: can't open /dev/ksyms
kvm_mkdb: can't open /bsd: No such file or directory
dev.
clearing /tmp
starting pre-securelevel daemons:.
setting kernel security level: sysctl: kern.securelevel: Operation not permitted
creating runtime link editor directory cache.
preserving editor files
ssh-keygen: generating new DSA host key... Couldn't open /dev/null: Device not configuredfailed.
ssh-keygen: generating new RSA host key... Couldn't open /dev/null: Device not configuredfailed.
ssh-keygen: generating new RSA1 host key... Couldn't open /dev/null: Device not configuredfailed.
openssl: generating new isakmpd RSA key... /etc/rc[553]: cannot create /dev/null: Device not configured
failed.
starting network daemons:/etc/rc[606]: cannot create /dev/null: Device not configured
sendmail/etc/rc[626]: cannot create /dev/null: Device not configured
inetd sshdCouldn't open /dev/null: Device not configured.
starting local daemons:.
standard daemons: cron.
Sat Mar 3 14:56:39 MST 2007
SSH funzt damit gar nicht und wenn ich ein chroot auf /home/sysjail00/ mache, kommt folgendes:
Code:
/bin/ksh: No controlling tty (open /dev/tty: Device not configured)
/bin/ksh: warning: won't have full job control
Und jeder Befehl landet irgendwie im Hintergrund. Hab auch schon mksysjail-dev -c ssh usw. ausprobiert.
Hab ich bei der ganzen Sache was übersehen oder vergessen ?
gruß
penguin