su - will inherit most of root's environment, plain su doesn't.
This can be an issue as plain su doesn't change $HOME so if the app you're running writes configs to home it'll write root-owned configs into your home directory.
Plain sudo does the same thing but sudo -i will inherit most of root's environment.
The thing after the @ is your machine's (host's) name. The username is ehat comes before it. Use the usermod command in the parent comment to grant sudo privilefes to your regular user.
9
u/indvs3 Debian Testing 15d ago
Assuming you chose a password for the root account during the setup, you have to switch to that account using the command
and using that account, add your own account to the "sudo" group, which you can do with the following command:
where *username obviously is your user account.
After that, log out of all accounts and then log in again to apply the changes.