SlackwareThis Forum is for the discussion of Slackware Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I always appreciate any help I'm given. A long while back, I used "sudo" to run gparted from my fluxbox menu. This seemed to do all I wanted and I was satisfied. Sometime later, I found there was some particular feature that was unusable and required using "su" directly. Later, I started using fbpanel in e16 instead of fluxbox and was able to use the following command in a menu item to start gparted as root: 'xterm -geometry 20x2 -e su -c gparted'. This command opened a small window where I entered my password, then gparted opened with full functionality. After recent upgrades, this no longer works. The password window opens and accepts the password, but gparted fails to open. Running the command in terminal gives no error message. Simply running 'su -c gparted' in an xterm works as normal.
Anybody have any ideas about what has changed? I know I could install gksu, but I really preferred this low tech method instead of adding more software.
Thanks to all of you, but neither suggestion fixed the problem. The original syntax worked for about one year in both fluxbox and fbpanel. I also tried with full path. I'm running 'current', so I feel sure it's some recent change.
Last edited by liberalchrist; 05-19-2013 at 12:07 PM.
Thanks for your suggestion. Unfortunately, xhost + did not change the result, nor did changing /etc/profile (this caused X to fail with a 'No protocol' message). This has already taken too much time for such a minor problem and I know that simpler solutions are available.
Thanks for all your time folks, I'll just mark this one solved.
Last edited by liberalchrist; 05-19-2013 at 12:59 PM.
Fair enough, but I'm still a bit curious why *it works for me*, and not for you...so, could it also involve dbus....?
Do you happen to have this in your ~/.fluxbox/startup:
# Start DBUS session bus:
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
eval $(dbus-launch --sh-syntax --exit-with-session)
because it could involve a combo of dbus and xauth?
For the record, the message that I got before issuing xhost + was:
Unable to register terminal service: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
I am no longer using fluxbox as per my original post. I used the menu item in question successfully with my current setup only a few days ago. This seems to have changed with this weeks updates. This thread, http://www.linuxquestions.org/questi...helper-819838/ seems to be relevant. I just tried gksu and got the same result they did. This is really just an inconvenience, I only use gparted occasionally. Like any OCD computer geek, I just have a hard time relaxing when I can't figure things out.
P.S., No, I don't have the code you mentioned in either ~/.fluxbox/startup or any of my .xinitrc's.
Last edited by liberalchrist; 05-19-2013 at 01:44 PM.
...Like any OCD computer geek, I just have a hard time relaxing when I can't figure things out....
cheers to that! who hasn't had these niggling things that often take months (years!) to rectify only to discover in some obscure post somewhere that it's often as simple as <insert foo foo bar bar hyphen tilde tic here> and it's solved?
What you notice is indeed because Pat recently upgraded the shadow
package to version 184.108.40.206.
Shadow 4.1.5 corrected a long-standing tty-hijacking security flaw
in su -c (CVE-2005-4890). In short, previous behavior gave the
su -c command a controlling tty which provided it with ioctl
access to /dev/tty.
To prevent this, shadow no longer forwards the controlling terminal
to commands executed with -c.