LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   shut down and reboot options gone from gnome 2.10 (https://www.linuxquestions.org/questions/slackware-14/shut-down-and-reboot-options-gone-from-gnome-2-10-a-309982/)

acidjuice 04-05-2005 10:43 AM

shut down and reboot options gone from gnome 2.10
 
dear all,

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?

this look pretty annoying...

cheers,

aj.

slightcrazed 04-05-2005 11:53 AM

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.

slight

Arch Stanton 04-05-2005 11:49 PM

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.

acidjuice 04-06-2005 03:30 AM

hi and thank you for taking the time to reply.

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?

tx,

aj.

gbonvehi 04-06-2005 03:51 AM

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

acidjuice 04-06-2005 03:57 AM

thank you gbonvehi,

i was aware of this solution :) however i'd still ike to have this kind of menu from within gnome itself.

cheers,

aj.

zborgerd 04-06-2005 11:38 AM

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:


zborgerd 04-06-2005 02:41 PM

Quote:

Originally posted by acidjuice
hello zborgerd,

well, i was using the first beta version then :)

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.

...do you happen to have other reports on this?

thanks,

aj.

I'm replying to your post that you placed here ( http://www.linuxquestions.org/questi...postid=1576465 ), because I assume that this is the right thread:

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:

http://prdownloads.sourceforge.net/d...l.tgz?download

Make sure that it's listed in /var/log/packages. If it is, it probably wouldn't hurt to reinstall it anyway.

acidjuice 04-06-2005 03:07 PM

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.

zborgerd 04-06-2005 03:23 PM

Quote:

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.

Regards,

Zach


All times are GMT -5. The time now is 06:26 AM.