mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2024-11-25 09:33:50 +01:00
Merge branch 'feature/KASM-2702-README-set-password' into 'master'
Resolve KASM-2702 "Feature/ readme set password" Closes KASM-2702 See merge request kasm-technologies/internal/KasmVNC!53
This commit is contained in:
commit
dc60c73a81
@ -66,6 +66,9 @@ sudo ln -s /usr/share/doc/kasmvncserver/examples/kasmvncserver-easy-start /usr/b
|
|||||||
sudo addgroup $USER ssl-cert
|
sudo addgroup $USER ssl-cert
|
||||||
# You will need to re-connect in order to pick up the group change
|
# You will need to re-connect in order to pick up the group change
|
||||||
|
|
||||||
|
# Create a KasmVNC user able to use keyboard and mouse:
|
||||||
|
vncpasswd -u $USER -w
|
||||||
|
|
||||||
# Create ~/.vnc directory and corresponding files.
|
# Create ~/.vnc directory and corresponding files.
|
||||||
kasmvncserver-easy-start -d && kasmvncserver-easy-start -kill
|
kasmvncserver-easy-start -d && kasmvncserver-easy-start -kill
|
||||||
|
|
||||||
|
@ -33,14 +33,15 @@
|
|||||||
|
|
||||||
static void usage(const char *prog)
|
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"
|
"-r Read permission\n"
|
||||||
"-w Write permission\n"
|
"-w Write permission\n"
|
||||||
"-o Owner\n"
|
"-o Owner\n"
|
||||||
"-n Don't change password, change permissions only\n"
|
"-n Don't change password, change permissions only\n"
|
||||||
"-d Delete this user\n"
|
"-d Delete this user\n"
|
||||||
"\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"
|
"To pass the password via a pipe, use\n"
|
||||||
"echo -e \"password\\npassword\\n\" | %s [-args]\n",
|
"echo -e \"password\\npassword\\n\" | %s [-args]\n",
|
||||||
prog, prog);
|
prog, prog);
|
||||||
|
@ -281,7 +281,7 @@ $kasmAuthEnabled = 1;
|
|||||||
|
|
||||||
if ($kasmAuthEnabled) {
|
if ($kasmAuthEnabled) {
|
||||||
if (!(-e "$ENV{HOME}/.kasmpasswd")) {
|
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");
|
system($exedir."kasmvncpasswd $ENV{HOME}/.kasmpasswd");
|
||||||
if (($? >> 8) != 0) {
|
if (($? >> 8) != 0) {
|
||||||
exit 1;
|
exit 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user