0
Ich versuche Befehl auszuführen:Freebsd Gefängnis Befehlsausführungsfehler ohne Grund
# service jail start myjail
ich die /etc/rc.d/jail und Dump-debuggen, die wirklich Befehl lautet:
/usr/sbin/jail -l -U root -i -f /var/run/jail.myjail.conf -c myjail
Die Ausgang:
usage: jail [-dhilqv] [-J jid_file] [-u username] [-U username] -[cmr] param=value ... [command=command ...] jail [-dqv] [-f file] -[cmr] [jail] jail [-qv] [-f file] -[rR] ['*' | jail ...] jail [-dhilqv] [-J jid_file] [-u username] [-U username] [-n jailname] [-s securelevel] path hostname [ip[,...]] command ...
Die Datei /var/run/jail.myjail.conf wird von rc Gefängnis Skript autogenrated basierend auf Variablen der zuvor gearbeitet Gefängnis von rc.conf
Der Inhalt ist:
myjail {
host.hostname = "myjail.example.com";
path = "/var/jail/myjail.root";
ip4.addr += "192.168.0.150/32";
allow.raw_sockets = 0;
exec.clean;
exec.system_user = "root";
exec.jail_user = "root";
exec.start += "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown";
exec.consolelog = "/var/log/jail_myjail_console.log";
mount.devfs;
allow.set_hostname = 0;
allow.sysvipc = 0;
}
Was ist falsch?