I have TDE running on Squeeze. I need to run wireshark as root. Can I? Or have I hit a fatal flaw in Trinity? :-(
I.e. has anyone got a viable workaround for it (other than learn how to set sudo up.)
Thanks, Lisi
Am Sonntag, 25. September 2011 schrieb Lisi:
I have TDE running on Squeeze. I need to run wireshark as root. Can I? Or have I hit a fatal flaw in Trinity? :-(
I.e. has anyone got a viable workaround for it (other than learn how to set sudo up.)
you'll need sudo-trinity instead of sudo.
nik
Thanks, Lisi
To unsubscribe, e-mail: trinity-users-unsubscribe@lists.pearsoncomputing.net For additional commands, e-mail: trinity-users-help@lists.pearsoncomputing.net Read list messsages on the Web archive: http://trinity-users.pearsoncomputing.net/ Please remember not to top-post: http://trinity.pearsoncomputing.net/mailing_lists/#top-posting
On Sunday 25 September 2011 12:39:12 Mag. Dr. Nikolaus Klepp wrote:
Am Sonntag, 25. September 2011 schrieb Lisi:
I have TDE running on Squeeze. I need to run wireshark as root. Can I? Or have I hit a fatal flaw in Trinity? :-(
I.e. has anyone got a viable workaround for it (other than learn how to set sudo up.)
you'll need sudo-trinity instead of sudo.
Thanks Nic, but I don't want to have to use sudo at all if I can avoid it. I want to use su with a gui, which means kdesu since I am running Debian and Trinity, and I am hoping that someone has a workaround that I can use to do it.
Lisi
Am Sonntag, 25. September 2011 schrieb Lisi:
On Sunday 25 September 2011 12:39:12 Mag. Dr. Nikolaus Klepp wrote:
Am Sonntag, 25. September 2011 schrieb Lisi:
I have TDE running on Squeeze. I need to run wireshark as root. Can I? Or have I hit a fatal flaw in Trinity? :-(
I.e. has anyone got a viable workaround for it (other than learn how to set sudo up.)
you'll need sudo-trinity instead of sudo.
Thanks Nic, but I don't want to have to use sudo at all if I can avoid it. I want to use su with a gui, which means kdesu since I am running Debian and Trinity, and I am hoping that someone has a workaround that I can use to do it.
If i remember right, kdesu is from KDE4, not trinity. Trinity comes with kdesudo.
but if it's just wireshark, then you can write a wrapper script, create a shortcut which calles the script using a terminal (for the root password), something like this:
#!/bin/sh xhost +localhost su -c "DISPLAY=:0 wireshark &" exit
nik
Lisi
To unsubscribe, e-mail: trinity-users-unsubscribe@lists.pearsoncomputing.net For additional commands, e-mail: trinity-users-help@lists.pearsoncomputing.net Read list messsages on the Web archive: http://trinity-users.pearsoncomputing.net/ Please remember not to top-post: http://trinity.pearsoncomputing.net/mailing_lists/#top-posting
On Sunday 25 September 2011 13:52:28 Mag. Dr. Nikolaus Klepp wrote:
If i remember right, kdesu is from KDE4, not trinity. Trinity comes with kdesudo.
No, you do not remember right. KDE 3 has kdesu. KDE 4 may also have it, I don't know. But since KDE 3 has it, it seems not unreasonable to hope to find it in Trinity. And it is incorrect to say that Trinity has kdesudo. It may have some software installed, but it doesn't function. I have just rechecked that. As I said in the first place, I would have to set sudo up to use it, and I don't want to do so.
Anyhow, if you don't know a workaround, that's fine. But someone else may. Asking whether anyone knows one is not an unreasonable request.
The answer may well be no, and I shall be reduced to GNOME. :-(
Lisi
On 25/09/11 14:53, Lisi wrote:
On Sunday 25 September 2011 13:52:28 Mag. Dr. Nikolaus Klepp wrote:
If i remember right, kdesu is from KDE4, not trinity. Trinity comes with kdesudo.
No, you do not remember right. KDE 3 has kdesu. KDE 4 may also have it, I don't know. But since KDE 3 has it, it seems not unreasonable to hope to find it in Trinity. And it is incorrect to say that Trinity has kdesudo. It may have some software installed, but it doesn't function. I have just rechecked that. As I said in the first place, I would have to set sudo up to use it, and I don't want to do so.
Anyhow, if you don't know a workaround, that's fine. But someone else may. Asking whether anyone knows one is not an unreasonable request.
The answer may well be no, and I shall be reduced to GNOME. :-(
Lisi
There is a kdesu bug in TDE for Debian (probably because it was built from Ubuntu sources; Ubuntu always uses sudo.). There is a workaround (I posted this before but it was some time back) which works consistently here. I don't use sudo at all.
1. apt-get purge kdesudo-trinity
2. Create a file ~/.trinity/share/config/kdesurc with this text:
[super-user-command] super-user-command=su
3 You will need to edit the menus for all Trinity root apps else dcopserver will crash. In the "command" box put:
kdesu trinity_app --nonewdcop
And uncheck "Run as different user"
From then on you should be able to use normal kdesu (or gksu), I think I got that right. Let me know if you have any problems after, I might have the answer
On Sunday 25 September 2011 15:03:44 David Hare wrote:
On 25/09/11 14:53, Lisi wrote:
On Sunday 25 September 2011 13:52:28 Mag. Dr. Nikolaus Klepp wrote:
If i remember right, kdesu is from KDE4, not trinity. Trinity comes with kdesudo.
No, you do not remember right. KDE 3 has kdesu. KDE 4 may also have it, I don't know. But since KDE 3 has it, it seems not unreasonable to hope to find it in Trinity. And it is incorrect to say that Trinity has kdesudo. It may have some software installed, but it doesn't function. I have just rechecked that. As I said in the first place, I would have to set sudo up to use it, and I don't want to do so.
Anyhow, if you don't know a workaround, that's fine. But someone else may. Asking whether anyone knows one is not an unreasonable request.
The answer may well be no, and I shall be reduced to GNOME. :-(
Lisi
There is a kdesu bug in TDE for Debian (probably because it was built from Ubuntu sources; Ubuntu always uses sudo.). There is a workaround (I posted this before but it was some time back) which works consistently here. I don't use sudo at all.
apt-get purge kdesudo-trinity
Create a file ~/.trinity/share/config/kdesurc with this text:
[super-user-command] super-user-command=su
3 You will need to edit the menus for all Trinity root apps else dcopserver will crash. In the "command" box put:
kdesu trinity_app --nonewdcop
And uncheck "Run as different user"
From then on you should be able to use normal kdesu (or gksu), I think I got that right. Let me know if you have any problems after, I might have the answer
Thanks, David. That's great. I'll try now.
Yes, I knew that someone had, but I couldn't remember who and couldn't find it.
Lisi
In fact, kdesudo-trinity does a dpkg-divert of normal kdesu. That reverts when it is purged.
You should be able in any case to run a (non-Trinity) app as root with:
su-to-root -X -c application
or use gksu (you don't have to install Gnome for that)
If you want your user disabled altogether from sudo you need to edit /etc/sudoers.
On Sunday 25 September 2011 15:15:05 David Hare wrote:
In fact, kdesudo-trinity does a dpkg-divert of normal kdesu. That reverts when it is purged.
You should be able in any case to run a (non-Trinity) app as root with:
su-to-root -X -c application
or use gksu (you don't have to install Gnome for that)
If you want your user disabled altogether from sudo you need to edit /etc/sudoers.
Just realised - I am running on GNOME at the moment in order to be able to use wireshark in its GUI mode, which is the one for which I have instructions. So I'll have to adjust Trinity later.
Thanks anyway, Lisi
On Sunday 25 September 2011 15:15:05 David Hare wrote:
or use gksu (you don't have to install Gnome for that)
Thanks, David. In a hurry that was a real lifesaver. I'll do the rest of what you advocate later.
Come to think of it, using gksu was a very simple workaround! But I'd like to try to get kdesu going, as an exercise if nothing else.
Lisi