Skip to content

Commit

Permalink
Custom username on RPI OS: fixup sudo nopasswd
Browse files Browse the repository at this point in the history
Ref #287
  • Loading branch information
maxnet committed Nov 20, 2021
1 parent 0f3a6a2 commit 2ada96e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions OptionsPopup.qml
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,9 @@ Popup {
addFirstRun(" if [ -f /etc/systemd/system/[email protected]/autologin.conf ]; then")
addFirstRun(" sed /etc/systemd/system/[email protected]/autologin.conf -i -e \"s/$FIRSTUSER/"+fieldUserName.text+"/\"")
addFirstRun(" fi")
addFirstRun(" if [ -f /etc/sudoers.d/010_pi-nopasswd ]; then")
addFirstRun(" sed -i \"s/^$FIRSTUSER /"+fieldUserName.text+" /\" /etc/sudoers.d/010_pi-nopasswd")
addFirstRun(" fi")
addFirstRun("fi")

addFirstRun("systemctl enable ssh")
Expand Down

0 comments on commit 2ada96e

Please sign in to comment.