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

Archived topics about LMDE 1
Forum rules
pintas
Level 1
Level 1
Posts: 17
Joined: Tue Jan 11, 2011 11:32 am

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

Postby pintas » 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

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

Postby pintas » 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?


Return to “Archive”

Who is online

Users browsing this forum: No registered users and 0 guests