SlackwareThis Forum is for the discussion of Slackware Linux.
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.
since the upgrade to gnome 2.10, when i select to log out from gnome i do not get a choice of three option (this neither as root nor normal user), only a choice to log out.
is there a way to have the dropline 2.8.2 functionality which allows to shutdown directly from gnome? or do i have to logout, su to root, poweroff?
I haven't tried Gnome 2.10 yet. Are you using Dropline Gnome?
I can provide you with a work-around (basically a sudo entry and a script that I used to use with Windowmaker so that my wife could shut the puter down without having to open a terminal)
If you're on Dropline then I would try posting in their forums, as 2.10 is still in beta and it's an issue that they can probably fix.
I just installed dropline 2.10 the other day and I do have shutdown and reboot options on logout.
can't tell ya why I do and you don't, but I had set permissions on /sbin/halt and /sbin/shutdown to 755 before the install... might have something to do with it.
Last edited by Arch Stanton; 04-05-2005 at 11:51 PM.
well yes, i'm on dropline and have installed gnome 2.10 from them. i did not do any sudo nor any other particular operation before install, and i guess doing that now is a bit too late.
what is weird to me is that with 2.8.2 i had these options (still dropline).
any workarounds welcomed, or maybe i should just wait a final release?
I know this won't add a option in the menu, but at least will let you reboot and shutdown with your user.
Run as root: visudo
This "program" (it's actually the vi editor) will let you edit the sudoers privileges so you can allow a user to run a root command with sudo.
I'll make a quick editing guide here in case you never used vi.
Go with the arrow keys to the end of the file, press the "i" to get to Input mode, and type something like:
Code:
gbonvehi desktop= NOPASSWD: /sbin/shutdown -h now
gbonvehi desktop= NOPASSWD: /sbin/shutdown -r now
Then press ESC key and finally type, :wq and ENTER.
Replace gbonvehi with your username and desktop with your machine name.
Now you'll be able to reboot with your user by typing: sudo /sbin/shutdown -r now
or shutdown with: sudo /sbin/shutdown -h now
This was removed from the gnome-panel, and relies on GDM for the functionality now. You must have your system set to runlevel 4 for this menu option to appear.
The default runlevel may be changed in /etc/inittab.
Code:
# Default runlevel. (Do not set to 0 or 6)
id:4:initdefault:
apparently still no luck after applying the latest PAM, i still have no HALT nor REBOOT option when logging out of gnome, but only LOG OUT and the 'save current session' checkmark.
I take it that you do have GDM enabled then? Was this a fresh installation of Slackware 10.1? We had someone report that he had such a problem on his machine, but he also said that he's been "upgrading" his Slackware box since version 4.
If you log out, does GDM have any "shutdown" or "reboot" options? If not, try reinstalling the GDM pack. This should be the right one:
hi zborgerd, and thank for taking the time to reply.
no i am not using GDM right now since i boot in level 3. will definitely try that then, i've seen that you already took care (or maybe was it pat?) of creating the necessary poweroff rights for common users to halt from the prompt.
thank you, will try using GDM and see if that works.
Originally posted by acidjuice hi zborgerd, and thank for taking the time to reply.
no i am not using GDM right now since i boot in level 3. will definitely try that then, i've seen that you already took care (or maybe was it pat?) of creating the necessary poweroff rights for common users to halt from the prompt.
thank you, will try using GDM and see if that works.
cheers, and keep up the good work,
aj.
Yeah... As I noted above, GDM is unfortunately required (e.g., you must be in runlevel 4) now for these menu options to appear. This was a change that was done by the GNOME developers. Even modifying permissions for shutdown and reboot won't help (we have pam_console/consolehelper functions for these anyway, so normal users can do this regardless), since it's basically a design change in GNOME.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.