Commit 0b245239 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

Fixed typo in sudoers file

parent e3017acc
...@@ -49,8 +49,8 @@ class EtcSudoers: ...@@ -49,8 +49,8 @@ class EtcSudoers:
sudoers_file.write('# Added during install\n') sudoers_file.write('# Added during install\n')
# Check if we require a password or not # Check if we require a password or not
if entry['require_password']: if entry['require_password']:
sudoers_file.write(f'{username}=(ALL) ALL\n') sudoers_file.write(f'{username} ALL=(ALL) ALL\n')
else: else:
sudoers_file.write(f'{username}=(ALL) NOPASSWD: ALL\n') sudoers_file.write(f'{username} ALL=(ALL) NOPASSWD: ALL\n')
# Finally close file # Finally close file
sudoers_file.close() sudoers_file.close()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment