KnightTheCoder / Linux-Distro-Post-Install-Scripts

Configure a distro after a fresh install
GNU General Public License v2.0
1 stars 0 forks source link

Rework to only work with sudo #66

Open KnightTheCoder opened 2 months ago

KnightTheCoder commented 2 months ago

Rework the scripts so they can only be executed by sudo This would fix priviledge escalation

instead of $HOME create $SUDO_HOME USER_HOME=$(getent passwd $SUDO_USER | cut -d: -f6)