how to set up and use accounts and permissions?

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
corrogupted
Posts: 5
Joined: Wed Apr 14, 2021 10:35 pm

how to set up and use accounts and permissions?

Post by corrogupted »

I was hoping some of the people who have been around this for a while could point me to some resources to understand the user structure employed by dietpi, and also what is a good way to set up permissions for files.

I've been reading old threads where the solution to issues is to chmod to dietpi's ownership, because services run as dietpi can't modify root's files. But presumably there are times when this would cause problems?

Who should be owning, running and using what sorts of things?

What account does everyone log in with? At first I logged in with dietpi, but of course every task is basically an administrative task, so I gave up on that. It doesn't seem like sudo comes up toooo often so I guess I'm not the only one.
User avatar
Joulinar
Posts: 4536
Joined: Sat Nov 16, 2019 12:49 am

Re: how to set up and use accounts and permissions?

Post by Joulinar »

Basically sudo is a standard way on Linux to execute administrative task as non-root user. If you don't like to use sudo, you would need to use root user.

In general, there are just 2 user and the respective group created on DietPi by default. root as well as dietpi. During software installation additional application user could/will be created. Normally these users will be added to dietpi group to be able to share data between all applications on file system level.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply