Howto Jailkit in OpenSuse 12.3

Jailkit mini howto:

zypper ar -f Index of /repositories/security/openSUSE_12.3 security
zypper -n install jailkit

chmod +s /usr/sbin/jk_chrootsh
mkdir /jail
chown root:root /jail

#most commonly used:
jk_init -v /jail basicshell editors extendedshell netutils ssh sftp scp

#add to /etc/jailkit/jk_lsh.ini:
executables = /usr/bin/scp, /usr/lib/sftp-server, /usr/bin/rsync, bin/bash
paths = /usr/bin/, /usr/lib
allow_word_expansion = 1

[group users]
executables = /usr/bin/rsync
paths = /usr/bin/
allow_word_expansion = 1

useradd -m <username>
passwd <username>

jk_jailuser -m -j /jail <username>
#change /jail/etc/passwd; <username>…:/usr/sbin/jk_lsh to :/bin/bash

#test using ssh:
ssh <username>@localhost
#should login okay, else check /var/log/messages

The repository URL got mangled :frowning:
Howto prevent this? I meant to quote the url there.

Please use CODE tags around all computer texts. You get the CODE tags by clicking on the # button in the tool bar of the post editor.

The CODE tags hcvv alluded to will invalidate any tag markup within that block solving your problem.

So, the tag does more than just “pretty up” and separate the code…