Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] xfce4 menu eintrag -> ethereal (o.ä.) als root
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
suro
n00b
n00b


Joined: 28 Oct 2003
Posts: 64
Location: Austria

PostPosted: Fri Nov 25, 2005 9:04 am    Post subject: [solved] xfce4 menu eintrag -> ethereal (o.ä.) als root Reply with quote

hi leute

nach wirklich langer forum suche und google, habe ich immer noch keine lösung für die
konfiguration des xfce4 menüs :x

1. wie starte ich aus dem menü gtk programme wie ettercap als root
und übergebe zusätzliche argumente??


z.B. aus der console würde ich mich mit
Code:
tux ~ $ sux
Password:


enablen um dann
Code:
tux# ettercap -G

zu starten!

wie schaffe ich das aus dem ganz normalen xfce4 menü welches ich mit dem menü editor
bearbeiten kann???

ich habe es schon mit "gksu" versucht, hier kann ich zwar ein prog als root starten (fragt
brav das root passwort ab), allerdings kann ich keine argumente mit übergeben....

funktioniert:
Code:
gksu - u root ethereal

funktioniert nicht:
Code:
gksu -u root ettercap -G

Fehlermeldung bei letzterem: "Missing command to run"

2. wie kann ich ein terminal in dem irgendein befehl gelaufen ist und das über das xfce4 menü
aufgerufen wurde - offen halten?


menü eintrag:
Code:
ping 10.10.10.1

und das hackerl bei "Run in Terminal" gesetzt!

nur, sobald ich den befehl aus dem menü starte, schliesst sich das fenster sofort...


nachdem ich wirklich schon viel herum gesucht habe, hoffe ich das ihr mir bei meinem
kleinen "GUI" problem helfen könnt!?!?

vielen dank für jeden brauchbaren tipp,
suro


Last edited by suro on Fri Nov 25, 2005 9:55 am; edited 1 time in total
Back to top
View user's profile Send private message
gimpel
Advocate
Advocate


Joined: 15 Oct 2004
Posts: 2720
Location: Munich, Bavaria

PostPosted: Fri Nov 25, 2005 9:32 am    Post subject: Reply with quote

ich benutze dafür sudo, in /etc/sudoers den erlaubten command definieren, passt
_________________
http://proaudio.tuxfamily.org/wiki - pro-audio software overlay
Back to top
View user's profile Send private message
Vaarsuvius
Guru
Guru


Joined: 02 Dec 2004
Posts: 345

PostPosted: Fri Nov 25, 2005 9:36 am    Post subject: Reply with quote

zum 1. prob: wie waers mit gksu -u root "ettercap -G"
zum 2.: xterm -hold -e ping 10.10.10.1
Back to top
View user's profile Send private message
suro
n00b
n00b


Joined: 28 Oct 2003
Posts: 64
Location: Austria

PostPosted: Fri Nov 25, 2005 9:43 am    Post subject: Reply with quote

sudo?

hm, zum einen hab ich es noch nicht mal geschafft "grafische" progs mit sudo aus der console
zu starten (erlaubt ist es dem user, nur gtk funkt nicht):
Code:
tux ~ $ sudo ettercap -G
Password:

ettercap NG-0.7.3 copyright 2001-2004 ALoR & NaGA


GTK+ failed to initialize. Is X running?

zum anderen reagiert er aus dem xfce4 menü überhaupt nicht wenn ich z.b. folgenden
eintrag hinzufüge
Code:
sudo ettereal
-> auch nicht mit terminal hackerl...

das war der grund warum ich seither immer "sux" anstatt sudo genommen hab und das geht
auch super aus der console - aber eben nicht aus dem menü!
Back to top
View user's profile Send private message
suro
n00b
n00b


Joined: 28 Oct 2003
Posts: 64
Location: Austria

PostPosted: Fri Nov 25, 2005 9:46 am    Post subject: Reply with quote

kil wrote:
zum 1. prob: wie waers mit gksu -u root "ettercap -G"
zum 2.: xterm -hold -e ping 10.10.10.1


@.1 - hab ich natürlich auch schon probiert, auch mit einzelnen hochkommata (') -> gleiche fehlermeldung...

@2. danke dir, das scheint zu funktionieren!!
Back to top
View user's profile Send private message
suro
n00b
n00b


Joined: 28 Oct 2003
Posts: 64
Location: Austria

PostPosted: Fri Nov 25, 2005 9:49 am    Post subject: Reply with quote

STOP

shit, habs grad nochmal mit gksu -u root "ettercap -G" versucht und jetzt scheint
es zu funktionieren...

teste das mal kurz und schliess dann gegebenfalls den threat![/b]
Back to top
View user's profile Send private message
suro
n00b
n00b


Joined: 28 Oct 2003
Posts: 64
Location: Austria

PostPosted: Fri Nov 25, 2005 10:01 am    Post subject: Reply with quote

vielen dank, jetzt hab ich es!

hier noch eine kleine zusammenfassung falls es noch jemanden interessiert (einträge im xfce4 menü):

1. GTK programm als root ausführen
gksu -u root ethereal

2. GTK programm als root und zusätzlich argument übergeben
gksu -u root "ettercap -G"

3. programm als root in console starten
xterm -hold -e sudo iptraf

vielen dank an gimpel und kil!

lg
suro
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum