Network question, managing 2nd account as root

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
Boo
Level 7
Level 7
Posts: 1633
Joined: Mon Mar 26, 2007 7:48 am

Post by Boo »

The way is via a terminal.
open terminal window.
switch user to your account.

su - your_user_name

now you can use sudo from your account.
this is the prefered way.

:D
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Image
Now where was i going? Oh yes, crazy!
User avatar
Boo
Level 7
Level 7
Posts: 1633
Joined: Mon Mar 26, 2007 7:48 am

Post by Boo »

you can install them from your account.

or

apt-get is you cli friend.

sudo apt-get update

you can use synaptic to find the name of the game then:

sudo apt-get install game_name

:D
Image
Now where was i going? Oh yes, crazy!
antiquexray
Level 5
Level 5
Posts: 604
Joined: Sat Nov 18, 2006 6:04 pm
Location: Albert Lea Minnesota USA

Post by antiquexray »

Boo wrote: su - your_user_name

now you can use sudo from your account.
this is the prefered way.

:D
Why the su - and not su?
scorp123
Level 8
Level 8
Posts: 2272
Joined: Sat Dec 02, 2006 4:19 pm
Location: Switzerland

Post by scorp123 »

antiquexray wrote:Why the su - and not su?

Code: Select all

man su
... is your friend :wink: But in short: That minus "-" behind su will make sure all profile variables and login files get loaded too, as if you had logged in as that account right from start. :wink:

Or to put it another way: "su -" is cleaner than a mere "su".
Locked

Return to “Beginner Questions”