diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2015-03-28 22:46:04 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2015-03-28 22:46:04 +0300 |
commit | fa8c09586e0c8c19c05151d1471f7bc175897290 (patch) | |
tree | bf1a6000cb1be17f748bdde29f10a8afa86194d1 | |
parent | 5e05f677f2ceb328a73456b7b2cacfe69b994641 (diff) | |
download | live-fa8c09586e0c8c19c05151d1471f7bc175897290.tar.gz |
Add user to the `sudo` group
-rwxr-xr-x | install | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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', |