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

Archived topics about LMDE 1 and LMDE 2
Locked
pintas

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

Post by pintas »

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?
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.
pintas

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

Post by pintas »

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?
Locked

Return to “LMDE Archive”