jk_jailuser man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

jk_jailuser(8)			  jk_jailuser			jk_jailuser(8)

NAME
       jk_jailuser - a utility to put an existing user in a jail

SYNOPSIS
       jk_jailuser [OPTIONS] <username> [more usernames]

       jk_jailuser --jail=/path/to/jail <username>

DESCRIPTION
       The  jk_jailuser	 utility  will	change	the  shell of an existing user
       <username>  to  jk_chrootsh  and	  change   the	 home	directory   to
       <jail>/./<previous-home-directory>,   and  it  will  add	 the  user  to
       <jail>/etc/passwd. On *BSD systems this is <jail>/etc/master.passwd and
       pwd_mkdb is used to generate the other password files.

       The  jk_jailuser	 utility  will	abort if the <jail>/etc/passwd file is
       missing, or if the shell is missing in the jail.

       If <previous-home-directory> was already inside the jail, a /./ sepera‐
       tor is placed on the correct location in the path. If the previous home
       directory was not in the jail, it is changed. In interactive  mode  you
       are asked if you want to move the contents. In non-interactive mode the
       contents are only moved if the --move option is specified.

OPTIONS
       -j --jail=jail
	      The jail directory to use. This jail should  exist,  and	should
	      have at least <jail>/etc/passwd

       -v --verbose
	      Will give verbose output

       -h --help
	      The help screen

       -m --move
	      Move  the	 contents of the home directory inside the jail. If in
	      interactive mode, jk_jailuser will ask if the  directory	should
	      be  moved	 if  that  is  necessary. In non-interactive mode this
	      option is disabled by default.

       -n --noninteractive
	      No user interaction.

       -s --shell=shell
	      The shell to use inside the jail. Defaults to /usr/sbin/jk_lsh

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

COPYRIGHT
       Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008,  2009,	 2010  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.

JAILKIT				  07-02-2010			jk_jailuser(8)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net