summaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2015-03-28 22:46:04 +0300
committerIgor Pashev <pashev.igor@gmail.com>2015-03-28 22:46:04 +0300
commitfa8c09586e0c8c19c05151d1471f7bc175897290 (patch)
treebf1a6000cb1be17f748bdde29f10a8afa86194d1 /install
parent5e05f677f2ceb328a73456b7b2cacfe69b994641 (diff)
downloadlive-fa8c09586e0c8c19c05151d1471f7bc175897290.tar.gz
Add user to the `sudo` group
Diffstat (limited to 'install')
-rwxr-xr-xinstall1
1 files changed, 1 insertions, 0 deletions
diff --git a/install b/install
index 91d4d77..3be9c09 100755
--- a/install
+++ b/install
@@ -1078,6 +1078,7 @@ def create_user():
if ret == 0:
chpasswd_cmd = Popen(['chpasswd', '-R', rootdir], stderr=PIPE, stdout=PIPE, stdin=PIPE)
chpasswd_cmd.communicate(input='{}:{}'.format(login.value(), passwd1.value()))
+ call(['usermod', '-R', rootdir, '-a', '-G', 'sudo', login.value()])
break
else:
ButtonChoiceWindow(screen, title='Failed to create user',