Why 2 users in dietpi? Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
drool
Posts: 15
Joined: Sun Jan 26, 2020 5:44 pm

Why 2 users in dietpi?

Post by drool »

Hi, as we know there are 2 login users available in dietpi - root and dietpi. What is the reason for that? Also, is any one of them recommended over the other for desktop login and/or CLI login?
User avatar
Joulinar
Posts: 2597
Joined: Sat Nov 16, 2019 12:49 am

Re: Why 2 users in dietpi?

Post by Joulinar »

Hi,

root is the user name / account of the build in user that by default has access to all commands and files on a Linux or other Unix-like operating system. This is the ultimate super user.

dietpi is the non-root default user in DietPi that can use sudo to execute powerful commands. Asa well dietpi group will be used to share file system access between different application
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
drool
Posts: 15
Joined: Sun Jan 26, 2020 5:44 pm

Re: Why 2 users in dietpi?

Post by drool »

Thanks for the response. Is there any recommendation, on which user to choose for Automatic login, to one of the desktop(LXDE) I've installed?
User avatar
Joulinar
Posts: 2597
Joined: Sat Nov 16, 2019 12:49 am

Re: Why 2 users in dietpi?

Post by Joulinar »

usually user dietpi should not be able to run a desktop. but you can give it a try.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 2423
Joined: Sat Nov 18, 2017 6:21 pm

Re: Why 2 users in dietpi?

Post by MichaIng »

usermod -aG video,input dietpi is required at least. But best in this case is to use the LightDM login mask and the login with any custom user. If I'm not wrong, LightDM can autologin internally as well. Best is actually to create an own login user and grant it the required permissions for daily usage.

It's somewhere on the ToDo do actually remove the dietpi user (only leave the system group for shared service access) and instead have an option to create an own custom login user with selectable permissions on first (root) login.
Post Reply