Skip to content
Snippets Groups Projects
Verified Commit 2b36a4dc authored by Nicolas KAROLAK's avatar Nicolas KAROLAK
Browse files

create admin group and add user to it | refs #28200

parent e60a7694
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,8 @@ def setup(interactive=True):
cmds = list()
code, out = utils.exec_cmd(['id', 'admin'])
if code != 0:
cmds.append('useradd -m -s /bin/bash admin')
cmds.append('groupadd -f admin')
cmds.append('useradd -m -g admin -s /bin/bash admin')
out = ''
if 'sudo' not in out:
cmds.append('usermod -aG sudo admin')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment