can't use reboot command any more!

I have just installed a new and fresh version of Ubuntu (10.5) I have then installed the fvwm and copied my old .fvwm2rc file to .fvwm. But when I “reboot” from my menu nothing happens!

This is what I have:

AddToMenu MenuFvwmQuitVerify "Really Quit Fvwm?" Title
+  "Restart"					Restart
+  "Log out"					Quit
+  "Reboot"						exec sudo shutdown -r now
+  "Shutdown"					exec sudo shutdown -h now

I wa working perfectly before I reinstalled, any ideas?

[color=red]Edited by theBlackDragon:
–> Moved from Basic questions[/color]

Maybe try running “visudo” to make sure to make sure the user command options are setup properly.

I have used visudo and have changed /etc/sudoers to:

# /etc/sudoers
# This file MUST be edited with the 'visudo' command as root.
# See the man page for details on how to write a sudoers file.

# Host alias specification

# User alias specification

# Cmnd alias specification
Cmnd_Alias SHUTDOWN = /usr/sbin/shutdown
Cmnd_Alias SYNAPTIC = /usr/sbin/synaptic
Cmnd_Alias KONQUEROR = /usr/bin/konqueror
Cmnd_Alias KFMCLIENT = /usr/bin/kfmclient

# Defaults

Defaults	!lecture,tty_tickets,!fqdn

# User privilege specification
root	ALL=(ALL) ALL

# Added by Ubuntu installer

# Members of the admin group may gain root privileges
%admin	ALL=(ALL) ALL


I use that to give everyone in wheel premission to run sudo without root pass (I know, I’m lazy :wink:)
Anyway, If that doesn’t work you can always start the command in a terminal and type in the password after which it would then reboot

[code]+ “Reboot” Exec xterm -e sudo shutdown -r now

  • “Shutdown” Exec xterm -e sudo shutdown -h now[/code]

My shutdown commands in the menu look like this:

[code]+ “Logout” Quit

  • “Reboot” Exec exec sudo shutdown -r now
  • “Shutdown” Exec exec sudo shutdown -h now[/code]

The relevant part of my sudoers file looks like this:

User_Alias USERS = your-user-name Cmnd_Alias SHUTDOWN = /sbin/shutdown USERS ALL = NOPASSWD: SHUTDOWN

Hope this helps.