jk_addjailuser(8) - Linux man page
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_jailuserSynopsis
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_chrootlaunch(8) jk_chrootsh(8) jk_cp(8) jk_init(8) jk_lsh(8) jk_procmailwrapper(8) jk_socketd(8) useradd(8)
Copyright
Copyright (C) 2003, 2004, 2005, 2006, 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.
