Skip to content

Commit

Permalink
fix(users): avoid setting user as sudoer when it performs a password …
Browse files Browse the repository at this point in the history
…reset
  • Loading branch information
sassanh committed Oct 16, 2024
1 parent b53b971 commit 679b83f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- chore: remove what has remained from poetry in the codebase
- refactor(core): avoid truncating or coloring logs in log files
- feat(web-ui): add web-ui service
- fix(users): avoid setting user as sudoer when it performs a password reset

## Version 1.0.0

Expand Down
6 changes: 0 additions & 6 deletions ubo_app/system/system_manager/scripts/set_account.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,6 @@ fi
echo "${USERNAME}:${PASSWORD}" | chpasswd
printf "${USERNAME}:${PASSWORD}"

# Add the user to the sudo group
usermod -aG sudo $USERNAME

# Allow the user to run sudo without a password
echo "${USERNAME} ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/${USERNAME}

# Allow password authentication
sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config
systemctl restart ssh

0 comments on commit 679b83f

Please sign in to comment.