Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a problem executing sudo from fuxbox menu.
[exec] (label) {sudo gvim} - doesn't work. Sudo just returns 1, gvim is not started.
[exec] (label) {xterm -e sudo gvim} - works fine
I've tried using full path, like /usr/bin/sudo but nothing.
The /etc/sudoers file seems to be correctly configured:
user ALL=(ALL) NOPASSWD: ALL
I can use sudo from shell with no problems.
I've run out of ideas of what the problem could be.
Any suggestions are greatly appreciated.
I have Fedora 10 installed.
in the /etc/sudoers file is? This essentially gives the user root privledges without having the benefit of a password.
I am not trying to be harsh by making this comment, but I want to be sure those who read this post are reminded that the bad habits Microsoft encouraged with Windows are not carried over into the Linux community. There MUST be a clear separation of authority between the root user and unpriviledged users on *nix platforms. You can say "it's my box, I'll take the risk", but that starts and spreads a bad habit.
Last edited by Sargek; 02-17-2009 at 02:12 PM.
Reason: clarification
in the /etc/sudoers file is? This essentially gives the user root privledges without having the benefit of a password.
Yes, please never do this This was posted just to show that sudo should work fine. However, it doesn't work from the fluxbox menu.
No matter whether I try to sudo gvim (gui) or sudo shutdown (text).
It works fine from the console, but not from the fluxbox menu.
I've seen a number of posts about adding "sudo shutdown" to the menu, but it just wouldn't work in my case. Looks like sudo needs a terminal.
Well, it's been a while since I've used Fedora, but in googling and browsing a bunch of threads using some search terms relevant to your problem, I'm wondering if the issue might have something to do with SELinux.
Now, I obviously don't *know* this for a fact, but I do know that that beast was often the cause of what I deemed to be minor, unrelated issues that often had me pulling my hair out.
In other words, if you disable SELinux, does your menu item work?
Thanks a lot for taking time to search for a solution to my problem, but unfortunately, disabling SELinux didn't help. It was one of the things I tried first. As far as I can remember, I've had no problems with sudo menu items in blackbox with RedHat 9 and Fedora 3. But now, with Fedora 10, it seems to need a terminal. The "xterm -e sudo something" works fine, but just "sudo something" doesn't from the menu.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.