diff -Naur gnome-session-2.2.1.orig/gnome-session/logout.c gnome-session-2.2.1/gnome-session/logout.c
--- gnome-session-2.2.1.orig/gnome-session/logout.c	Tue Oct 15 02:05:01 2002
+++ gnome-session-2.2.1/gnome-session/logout.c	Thu Jun  5 12:23:33 2003
@@ -231,6 +231,7 @@
   GError *error = NULL;
   GdkScreen *screen;
   int monitor;
+  int PAMCONSOLE_DISABLED=0;
 
   gsm_verbose ("display_gui: showing logout dialog\n");
 
@@ -302,14 +303,16 @@
 			  FALSE, TRUE, 0);
     }
 
-  /* Red Hat specific code to check if the user has a
-   * good chance of being able to shutdown the system,
-   * and if so, give them that option
+  /* Code to show the logout options.
+   * Check uid and if commands exist, and if pam_console
+   * is configured
    */
   s = g_strconcat ("/var/lock/console/", g_get_user_name (), NULL);
   t = g_strconcat ("/var/run/console/", g_get_user_name (), NULL);
-  if (((geteuid () == 0) || g_file_exists (t) || g_file_exists(s)) &&
-      access (halt_command[0], X_OK) == 0)
+  if (((geteuid () == 0) || (PAMCONSOLE_DISABLED || 
+	g_file_exists (t) || g_file_exists(s))) &&
+      	access (halt_command[0], X_OK) == 0 && 
+	 access (reboot_command[0], X_OK) == 0)
     {
       GtkWidget *frame;
       GtkWidget *action_vbox;
