X-Git-Url: http://rtime.felk.cvut.cz/gitweb/novaboot.git/blobdiff_plain/f5c1bf2d273e2c5d06164b1f6efedc472eac0ea0..cae040530d9563ca769b173b4d2b1b799cb78c11:/server/adduser-novaboot diff --git a/server/adduser-novaboot b/server/adduser-novaboot index 36afefa..7d6a483 100755 --- a/server/adduser-novaboot +++ b/server/adduser-novaboot @@ -101,80 +101,4 @@ the target. EOF fi - - echo "Done" -exit 0 - -: < --key KEY [--admin-id NAME] [adduser options] user - -=head1 DESCRIPTION - -B is a wrapper of L command that -simplifies creation of user accounts for I's --ssh option. -The created account has its shell set to L. The -command also creates a template of the configuration file, sets up -administrator's SSH key in L prepares directories -and symlinks that for integration with TFTP server. - -=head2 Automatic power-off - -When your system uses L, you can configure a systemd -service to automatically power-off the target after timeout. To enable -this run: - - systemctl --user enable novaboot-delayed-power-off - -as the created user (e.g. via shell subcommand). To enable delayed -power-off for all novaboot-shell account, run the follwing as root: - - systemctl --global enable novaboot-delayed-power-off - -Individual accounts may disable this global configuration by running: - - systemctl --user mask novaboot-delayed-power-off - -The power-off timeout is hardcoded in the B -unit. To override the timeout, run C for your B and insert the -following to the spawned editor: - - [Timer] - OnActiveSec=30min - -=head1 OPTIONS - -=over 8 - -=item --key KEY - -Mandatory argument specifying administrator's public SSH key (e.g. -F<~/.ssh/id_rsa.pub>). The key will be copied to the created account's -F<~/.ssh/authorized_keys> and marked with administrator flag. - -=item --admin-id NAME - -User name associated with the key. This user name is shown to -connecting users when the target is occupied by the administrator. -When omitted, I is used as the user name. - -=back - -=head1 AUTHORS - -Michal Sojka - -Latest version can be found at -L. - -=cut -EOF