Nov 29 09:51:52 portal2 jk_chrootsh[31783]: now entering jail /jail for user upload (1001) with arguments -c /usr/lib/openssh/sftp-server
Nov 29 09:51:52 portal2 jk_lsh[31783]: cannot find user info for USER upload: Success
Nov 29 09:51:52 portal2 sshd[31661]: pam_unix(sshd:session): session closed for user upload
address@hidden:~/jailkit-2.14/jailkit$ make
make[1]: Entering directory `/home/user/jailkit-2.14/jailkit/src'
gcc -pthread -o jk_socketd jk_socketd.o jk_lib.o utils.o iniparser.o
gcc -g -O2 -Wall -pipe -DINIPREFIX=\"/etc/jailkit\" -c -o jk_lsh.o jk_lsh.c
jk_lsh.c: In function ‘main’:
jk_lsh.c:250:10: warning: variable ‘oldumask’ set but not used [-Wunused-but-set-variable]
gcc -g -O2 -Wall -pipe -DINIPREFIX=\"/etc/jailkit\" -c -o wordexp.o wordexp.c
gcc -pthread -o jk_lsh jk_lsh.o iniparser.o jk_lib.o utils.o wordexp.o
gcc -g -O2 -Wall -pipe -DINIPREFIX=\"/etc/jailkit\" -c -o jk_chrootsh.o jk_chrootsh.c
gcc -g -O2 -Wall -pipe -DINIPREFIX=\"/etc/jailkit\" -c -o passwdparser.o passwdparser.c
gcc -pthread -o jk_chrootsh jk_chrootsh.o iniparser.o jk_lib.o utils.o passwdparser.o
gcc -g -O2 -Wall -pipe -DINIPREFIX=\"/etc/jailkit\" -c -o jk_chrootlaunch.o jk_chrootlaunch.c
gcc -pthread -o jk_chrootlaunch jk_chrootlaunch.o jk_lib.o utils.o
gcc -g -O2 -Wall -pipe -DINIPREFIX=\"/etc/jailkit\" -c -o jk_uchroot.o jk_uchroot.c
gcc -pthread -o jk_uchroot jk_uchroot.o iniparser.o jk_lib.o utils.o
make[1]: Leaving directory `/home/user/jailkit-2.14/jailkit/src'
make[1]: Entering directory `/home/user/jailkit-2.14/jailkit/py'
sed -e "s!INIPREFIX='/etc/jailkit'!INIPREFIX='/etc/jailkit'!" \
-e "s!LIBDIR='[a-z/]*'!LIBDIR='/usr/share/jailkit'!" \
-e "s!EXEPREFIX='[a-z/]*'!EXEPREFIX='/usr'!" \
-e "s:#!/usr/bin/python:#!/usr/bin/python:" <
jk_cp.in > jk_cp
sed -e "s!INIPREFIX='/etc/jailkit'!INIPREFIX='/etc/jailkit'!" \
-e "s!LIBDIR='[a-z/]*'!LIBDIR='/usr/share/jailkit'!" \
-e "s!EXEPREFIX='[a-z/]*'!EXEPREFIX='/usr'!" \
-e "s:#!/usr/bin/python:#!/usr/bin/python:" <
jk_init.in > jk_init
sed -e "s!INIPREFIX='/etc/jailkit'!INIPREFIX='/etc/jailkit'!" \
-e "s!LIBDIR='[a-z/]*'!LIBDIR='/usr/share/jailkit'!" \
-e "s!EXEPREFIX='[a-z/]*'!EXEPREFIX='/usr'!" \
-e "s:#!/usr/bin/python:#!/usr/bin/python:" <
jk_check.in > jk_check
sed -e "s!INIPREFIX='/etc/jailkit'!INIPREFIX='/etc/jailkit'!" \
-e "s!LIBDIR='[a-z/]*'!LIBDIR='/usr/share/jailkit'!" \
-e "s!EXEPREFIX='[a-z/]*'!EXEPREFIX='/usr'!" \
sed -e "s!INIPREFIX='/etc/jailkit'!INIPREFIX='/etc/jailkit'!" \
-e "s!LIBDIR='[a-z/]*'!LIBDIR='/usr/share/jailkit'!" \
-e "s!EXEPREFIX='[a-z/]*'!EXEPREFIX='/usr'!" \
-e "s:#!/usr/bin/python:#!/usr/bin/python:" <
jk_jailuser.in > jk_jailuser
sed -e "s!INIPREFIX='/etc/jailkit'!INIPREFIX='/etc/jailkit'!" \
-e "s!LIBDIR='[a-z/]*'!LIBDIR='/usr/share/jailkit'!" \
-e "s!EXEPREFIX='[a-z/]*'!EXEPREFIX='/usr'!" \
-e "s:#!/usr/bin/python:#!/usr/bin/python:" <
jk_list.in > jk_list
sed -e "s!INIPREFIX='/etc/jailkit'!INIPREFIX='/etc/jailkit'!" \
-e "s!LIBDIR='[a-z/]*'!LIBDIR='/usr/share/jailkit'!" \
-e "s!EXEPREFIX='[a-z/]*'!EXEPREFIX='/usr'!" \
-e "s:#!/usr/bin/python:#!/usr/bin/python:" <
jk_update.in > jk_update
/usr/bin/python -c "import py_compile;py_compile.compile('jk_lib.py')"
make[1]: Leaving directory `/home/user/jailkit-2.14/jailkit/py'
make[1]: Entering directory `/home/user/jailkit-2.14/jailkit/man'
gzip -9 < jailkit.8 > jailkit.8.gz
gzip -9 < jk_chrootsh.8 > jk_chrootsh.8.gz
gzip -9 < jk_uchroot.8 > jk_uchroot.8.gz
gzip -9 < jk_lsh.8 > jk_lsh.8.gz
gzip -9 < jk_socketd.8 > jk_socketd.8.gz
gzip -9 < jk_init.8 > jk_init.8.gz
gzip -9 < jk_check.8 > jk_check.8.gz
gzip -9 < jk_cp.8 > jk_cp.8.gz
gzip -9 < jk_chrootlaunch.8 > jk_chrootlaunch.8.gz
gzip -9 < jk_addjailuser.8 > jk_addjailuser.8.gz
gzip -9 < jk_jailuser.8 > jk_jailuser.8.gz
gzip -9 < jk_list.8 > jk_list.8.gz
gzip -9 < jk_update.8 > jk_update.8.gz
make[1]: Leaving directory `/home/user/jailkit-2.14/jailkit/man'
address@hidden:~/jailkit-2.14/jailkit$ sudo make install
[sudo] password for user:
/usr/bin/install -c -d -m 755 /etc/jailkit/
for file in jk_check.ini jk_init.ini jk_lsh.ini jk_socketd.ini jk_chrootsh.ini jk_update.ini jk_uchroot.ini ; do \
if [ -f /etc/jailkit/${file} ]; then \
/usr/bin/install -c -m 0644 ini/${file} /etc/jailkit/${file}.dist ;\
else \
/usr/bin/install -c -m 0644 ini/${file} /etc/jailkit/ ;\
fi ;\
done
make[1]: Entering directory `/home/user/jailkit-2.14/jailkit/src'
/usr/bin/install -c -d -m 755 /usr
/usr/bin/install -c -d -m 755 /usr/bin
/usr/bin/install -c -d -m 755 /usr/sbin
/usr/bin/install -c -m 0755 jk_socketd /usr/sbin/
/usr/bin/install -c -m 0755 jk_chrootlaunch /usr/sbin/
/usr/bin/install -c -m 0755 jk_lsh /usr/sbin/
/usr/bin/install -c -m 4755 jk_chrootsh /usr/sbin/
/usr/bin/install -c -m 4755 jk_uchroot /usr/bin/
if [ -z "#" ]; then \
/usr/bin/install -c -m 4755 jk_procmailwrapper /usr/sbin/ ;\
fi
make[1]: Leaving directory `/home/user/jailkit-2.14/jailkit/src'
make[1]: Entering directory `/home/user/jailkit-2.14/jailkit/py'
/usr/bin/install -c -d -m 755 /usr/sbin
for file in jk_cp jk_init jk_check jk_addjailuser jk_jailuser jk_list jk_update; do \
/usr/bin/install -c -m 0755 ${file} /usr/sbin/ ; \
done
/usr/bin/install -c -d -m 755 /usr/share/jailkit
/usr/bin/install -c -m 0644 jk_lib.py /usr/share/jailkit/
/usr/bin/install -c -m 0644 jk_lib.pyc /usr/share/jailkit/
make[1]: Leaving directory `/home/user/jailkit-2.14/jailkit/py'
make[1]: Entering directory `/home/user/jailkit-2.14/jailkit/man'
/usr/bin/install -c -d -m 755 /usr/share/man/man8/
for file in jailkit.8.gz jk_chrootsh.8.gz jk_uchroot.8.gz jk_lsh.8.gz jk_socketd.8.gz jk_init.8.gz jk_check.8.gz jk_cp.8.gz jk_chrootlaunch.8.gz jk_addjailuser.8.gz jk_jailuser.8.gz jk_list.8.gz jk_update.8.gz ; do \
/usr/bin/install -c -m 0644 ${file} /usr/share/man/man8/ ;\
done
make[1]: Leaving directory `/home/user/jailkit-2.14/jailkit/man'
# test if the jk_chrootsh is already in /etc/shells
# this previously had @echo but that fails on FreeBSD
if test -w /etc/shells; then \
if ! grep /usr/sbin/jk_chrootsh /etc/shells ; then \
echo "appending /usr/sbin/jk_chroots to /etc/shells";\
echo /usr/sbin/jk_chrootsh >> /etc/shells ;\
fi \
fi
appending /usr/sbin/jk_chroots to /etc/shells
-Dan