From 71fd9f8dba828f327bb4f20ac72821a77e6e512a Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Fri, 29 Apr 2016 19:16:48 +0000 Subject: [PATCH] Bug --- server/modules/adduser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/modules/adduser.py b/server/modules/adduser.py index 1f6819d..23f0bfd 100755 --- a/server/modules/adduser.py +++ b/server/modules/adduser.py @@ -43,7 +43,7 @@ def main(): if FLAGS.sudo: with open(os.path.join(FLAGS.chroot_path, 'etc', 'sudoers.d', FLAGS.username), 'w') as fh: - fh.write('%s\tALL=(ALL) NOPASSWD: ALL\n') + fh.write('%s\tALL=(ALL) NOPASSWD: ALL\n' % FLAGS.username) if FLAGS.authorized_keys_file: dest_dir = os.path.join(FLAGS.chroot_path, 'home', FLAGS.username, '.ssh')