How to call a admin account for gksudo in a limited account?

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
masternetra
Level 1
Level 1
Posts: 34
Joined: Fri Jan 22, 2010 12:45 pm

How to call a admin account for gksudo in a limited account?

Post by masternetra »

I was wondering how do I call a admin account for gksudo/sudo work while in a limited account.
I thought it was; gksudo -u "adminuser" gksudo "command" ,but that doesn't work, keeps asking for the limited accounts pass instead of the targeted admin. I know it can be done. I just forgot the exact command. Tried replacing gksudo with gksu and same mistake.
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.
stratus_ss

Re: How to call a admin account for gksudo in a limited acco

Post by stratus_ss »

what you are looking for is something like the following

Code: Select all

su <priv user> -c "gksudo <command>"
For example I tested this out

Code: Select all

test@localhost $ su coder -c "gksudo nautilus"
Which brought up a root version of nautilus
Locked

Return to “Other topics”