jk_addjailuser(8)

NAME
jk_addjailuser - a utility to add a new user to the password database in /etc/ as well as in JAIL/etc/

DEPRECATED
jk_addjailuser is deprecated and will be removed from jailkit. The functionality is replaced by jk_jailuser

SYNOPSIS
jk_addjailuser [OPTIONS] chrootdir username jk_addjailuser [-c comment] [-d home_dir] [-e expire_date] [-f inactive_time] [-g initial_group] [-G group[,...]] [-m [-k skeleton_dir]] [-o] [-p passwd] [-s shell] [-u uid] username

DESCRIPTION
The jk_addjailuser utility creates a new user that will have a jailed shell. It will add the user to /etc/passwd (or equivalent on BSD like systems) using the useradd command with homedir /chrootdir/./home/username and shell jk_chrootsh It will also add the user to /chrootdir/etc/passwd (or equivalent) with homedir /home/username Most of the options are passed to useradd Check useradd(8) for more info.

OPTIONS

-v  Will give verbose output

-h  The help screen

-c comment
    Comment

-d dir
    Home dir

-e date
    Expire_date

-f days
    Inactive time

-g group
    Initial group

-G group1,group1,...
    Additional groups

-m  Create homedir

-k dir
    Skeleton dir

-o  Allow duplicate uid

-p passwd
    Encrypted password

-s shell
    Shell

-u uid
    User id

SEE ALSO
jailkit(8) jk_check(8) jk_chrootlaunch(8) jk_chrootsh(8) jk_cp(8) jk_init(8) jk_jailuser(8) jk_list(8) jk_lsh(8) jk_procmailwrapper(8) jk_socketd(8) jk_uchroot(8) jk_update(8) chroot(2) useradd(8)

COPYRIGHT
Copyright (C) 2003, 2004, 2005, 2006, 2007, Olivier Sessink Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.