jailkit-users
[Top][All Lists]
Advanced

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

[Jailkit-users] unable to ssh relax_home_group


From: Brian Platt
Subject: [Jailkit-users] unable to ssh relax_home_group
Date: Thu, 4 Apr 2019 07:17:12 +0000

I'm trying to ssh in but keep getting the following error in auth.log

Apr  4 08:51:16 shell jk_chrootsh[20731]: path /opt/jail/./home/test2 is not owned by group 1002
Apr  4 08:51:16 shell jk_chrootsh[20731]: abort, path /opt/jail/./home/test2 does not have group owner 1002, set option 'relax_home_group' to relax this check
Apr  4 08:51:16 shell sshd[20728]: pam_unix(sshd:session): session closed for user test2

/etc/jailkit/jk_chrootsh.ini

# understand that there is only one section that will be used:
# - highest priority: a section specific for the user
# - second priority: a section for the primary group of the user
# - third priority: the DEFAULT section
#
## example for a user
#[test]
#env= DISPLAY, XAUTHORITY
#
##example for a group, there should be only 1 space inbetween the words!
#[group users]
#env = DISPLAY, XAUTHORITY
#
## example for a default section
#[DEFAULT]
relax_home_group=1
#env= DISPLAY
#
#[group jail]
#env = TERM, PATH
#relax_home_owner=1
relax_home_group=1
#relax_home_group_permissions=1
#relax_home_other_permissions=1
env = TERM, PATH

/opt/jail/etc/passwd
test2:x:1002:1002:,,,:/home/test2:/bin/bash

/etc/passwd
test2:x:1002:1002:,,,:/opt/jail/./home/test2:/usr/sbin/jk_chrootsh

permissions

/opt/jail
drwxr-xr-x  4 root root 4096 Aug 24  2016 home

/opt/jail/home
drwxr-x---  2 test2 www-data 4096 Aug 24  2016 test2


reply via email to

[Prev in Thread] Current Thread [Next in Thread]