From a2a0a0640890872051e9619caf1b213272df67e8 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sun, 26 Jul 2020 15:12:28 +0200 Subject: Alright --- src/gitjoe/adduser.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gitjoe/adduser.pl b/src/gitjoe/adduser.pl index f1e562d..28b226a 100755 --- a/src/gitjoe/adduser.pl +++ b/src/gitjoe/adduser.pl @@ -41,9 +41,9 @@ yes no EOF" ); - my ($login, $pass, $uid, $gid) = getpwnam($user); + my ($login, $passwd, $uid, $gid) = getpwnam($user); mkdir $home_dir . '.ssh/', 0700; - chown $uid, $gid, $home_dir . '.ssh/' + chown $uid, $gid, $home_dir . '.ssh/'; # system( # '/usr/sbin/chown', # '-v', @@ -53,7 +53,7 @@ EOF" open(my $fh, '>:encoding(UTF-8)', $home_dir . '.ssh/authorized_keys'); print $fh $sshkey . "\n"; close($fh); - chown $uid, $gid, $home_dir . '.ssh/authorized_keys' + chown $uid, $gid, $home_dir . '.ssh/authorized_keys'; # system( # '/usr/sbin/chown', # '-v', -- cgit v1.2.3