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 believe the sudo behavior is because sudo inherits the calling user's environment (which does not include /sbin, /usr/sbin, etc. in the path by default) whereas su -c gets the root user's environment.
So if you did:
it should work.
As for the Logout entry in the menu, if you right click on the Applications Menu button on the panel and select Properties, is Use the default menu selected under Menu File, or is it set to a custom menu file?
I added 'PATH=$PATH:/sbin:/usr/sbin' to my .bash_profile and now I can use 'sudo reboot' with no password.
But still no options for logout from menu...
In the panel I also have 'Action Buttons', for shutdown, reboot... I saw there were both 'Log Out...' and 'Log Out' If I use 'Log Out...' It behaves just as if I click 'Log Out' in the menu, i.e. get me back to console but still logged in. The other alternatives gives me a question if I really want to shutdown/reboot/logout, and they work.
So the most important thing of course is that it works, and I can shutdown/reboot/logout with a few easy clicks. But I still would prefer to have it from the menu, and not need to have that extra item in panel.
Anyone know how to find out which commands it uses, so that I can try it in terminal and see what error I get? Where is the config file for the menu? I don't find it in my home, so I guess it should be somewhere in /etc ...
Thanks for finding those files for me. When I ran xfce4-session-logout from terminal I was thrown out to console again. I could see that the terminal gave back the prompt before that, so that command had finnished running. No errors. /usr/bin/xfce4-session-logout is a binary, so not so easy to find out what it does...
This is strange... I want to find out also because I don't like unsolved mysteries, in addition to that I want to use this feature. I guess this means checking out the source code. (I don't know C, but I will try anyway, and see if I can understand anything of it.)
If someone knows what's causing this problem, please let me know.
I tried the solution from that thread, but it didn't help. I stopped the daemon ( /etc/rc.d/rc.acpid stop ), and I also did 'chmod -x' on it and rebooted, but I still get thrown out of X when I click logout in menu.
Now I feel stupid... It was so simple that I had unmarked "Prompt on logout" in Settings - Session and Startup. I thougt it was about 'prompt about saving the session', which it now wants to do if I don't unmark it in the logout-dialog every time.
I will mark the thread as solved (if/when I find out how to do that).