mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2024-11-22 08:04:04 +01:00
Improve prompts to create a user
This commit is contained in:
parent
60de5a9791
commit
1c54f4f921
@ -33,14 +33,15 @@
|
||||
|
||||
static void usage(const char *prog)
|
||||
{
|
||||
fprintf(stderr, "Usage: %s -u username [-wnod] [file]\n"
|
||||
fprintf(stderr, "Usage: %s -u username [-wnod] [password_file]\n"
|
||||
"-r Read permission\n"
|
||||
"-w Write permission\n"
|
||||
"-o Owner\n"
|
||||
"-n Don't change password, change permissions only\n"
|
||||
"-d Delete this user\n"
|
||||
"\n"
|
||||
"The file is updated atomically.\n\n"
|
||||
"The password file is updated atomically.\n"
|
||||
"For more information, run \"man vncpasswd\".\n\n"
|
||||
"To pass the password via a pipe, use\n"
|
||||
"echo -e \"password\\npassword\\n\" | %s [-args]\n",
|
||||
prog, prog);
|
||||
|
@ -281,7 +281,7 @@ $kasmAuthEnabled = 1;
|
||||
|
||||
if ($kasmAuthEnabled) {
|
||||
if (!(-e "$ENV{HOME}/.kasmpasswd")) {
|
||||
warn "\nYou will require a password to access your desktops.\n\n";
|
||||
warn "\nYou need to create a KasmVNC user to access your desktops.\n\n";
|
||||
system($exedir."kasmvncpasswd $ENV{HOME}/.kasmpasswd");
|
||||
if (($? >> 8) != 0) {
|
||||
exit 1;
|
||||
|
Loading…
Reference in New Issue
Block a user