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 please read how to get help

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

Postby masternetra on Wed Nov 28, 2012 8:25 pm

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.
masternetra
Level 1
Level 1
 
Posts: 19
Joined: Fri Jan 22, 2010 12:45 pm

Linux Mint is funded by ads and donations.
 

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

Postby stratus_ss on Thu Nov 29, 2012 10:43 am

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
stratus_ss
Level 4
Level 4
 
Posts: 270
Joined: Fri May 25, 2012 5:22 pm


Return to Other topics

Who is online

Users browsing this forum: No registered users and 3 guests