MichaIng / DietPi

Lightweight justice for your single-board computer!
https://dietpi.com/
GNU General Public License v2.0
4.8k stars 494 forks source link

Option to set a different default user then "dietpi" #7216

Open ikem-krueger opened 1 week ago

ikem-krueger commented 1 week ago

Within the configuration file dietpi.txt I want to be able to set a default user like this:

# Global user to be applied for the system
# - During first run setup, the user is created
# - The user has sudo capabilities
AUTO_SETUP_GLOBAL_USER=custom

That way a hacker would have it harder to get into my appliance.

Joulinar commented 1 week ago

This feature we have on our agenda already to switch from DietPi user to a custom user. But ETA yet.

MichaIng commented 12 hours ago

Jep, actually my plan is to not create an other user by default, but only as option, via AUTO_SETUP_EXTRA_USER= and first run setup dialogue, or something like that.

ikem-krueger commented 10 hours ago

Can I then disable the default user?

MichaIng commented 9 hours ago

There would be none by default, only root, and you could skip creating one on first login.

ikem-krueger commented 9 hours ago

I meant root. Sorry.

MichaIng commented 8 hours ago

The root user can be theoretically locked for regular logins. For SSH you can do that already now.