gksu/su-to-root to run in terminal possible?

All Gurus once were Newbies
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. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

gksu/su-to-root to run in terminal possible?

Postby pintas on Sun Jan 16, 2011 10:24 pm

I'm configuring some security and i'd like to run arpon to a specific device everytime wicd connects.
So, if Wicd connects to a wireless, i'd launch gksu arpon -d -i eth2 (for example.) But this doesn't work, because it seems that gksu only works for X apps.

I found that if i do: gnome-terminal -e 'sudo arpon -d -i eth2'
It works, but it leaves me with a terminal window open, and i'd like to be asked for a password gksu style.

Is there a way to do this? With gksu or su-to-root maybe?
pintas
Level 1
Level 1
 
Posts: 17
Joined: Tue Jan 11, 2011 11:32 am

Linux Mint is funded by ads and donations.
 

Re: gksu/su-to-root to run in terminal possible?

Postby pintas on Mon Jan 17, 2011 12:06 am

Ok... i made some kind of progress...
Code: Select all
gksu -- arpon -d -i eth2
works, but it quits as soon as it starts.

What am i missing here?
pintas
Level 1
Level 1
 
Posts: 17
Joined: Tue Jan 11, 2011 11:32 am


Return to Newbie Questions

Who is online

Users browsing this forum: No registered users and 4 guests