[Top][All Lists]

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

[Jailkit-users] Deprecated command

From: Stack Overflow
Subject: [Jailkit-users] Deprecated command
Date: Tue, 24 May 2011 19:01:09 +0100


I've tried to execute the example at:


but I get a "deprecated" warning when I try to add the user:

> jk_addjailuser -j /home/sftproot test

*** jk_addjailuser is deprecated ***

please add the user like any other user, and use jk_jailuser to jail the user

Usage: /usr/sbin/jk_addjailuser [OPTIONS] chrootdir username

       [-c comment] [-d home dir] [-e expire_date]
       [-f inactive time] [-g initial group]
       [-G group[,...]] [-h] | [-?] | [--help]
       [-m [-k skeleton dir] | -M] [-n] [-o] 
       [-p passwd] -r [-s shell] [-u uid]
       [-v] | [--verbose]

I've then added the user by doing:

> adduser test

and entering the required information. As soon as I try to jail the user, though:

> jk_jailuser -j /home/sftproot test
invalid shell, /home/sftproot/usr/sbin/jk_lsh does not exist
enter jail directory: 

What am I doing wrong?



reply via email to

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