Bug#84920: marked as done (Gnome logout doesn't give option to halt or reboot machine)

Debian Bug Tracking System owner@bugs.debian.org
Sat, 05 Jun 2004 18:03:08 -0700


Your message dated Sun, 06 Jun 2004 02:52:19 +0200
with message-id <87y8n1cxto.fsf@asfaloth.marcbrockschmidt.de>
and subject line Fixed package now in unstable
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 5 Feb 2001 05:08:52 +0000
>From j@falooley.org Sun Feb 04 23:08:52 2001
Return-path: <j@falooley.org>
Received: from dsl-64-192-96-25.telocity.com (nabu.falooley.org) [::ffff:64.192.96.25] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 14PdtT-0001SE-00; Sun, 04 Feb 2001 23:08:51 -0600
Received: from j by nabu.falooley.org with local (Exim 3.20 #1 (Debian))
	id 14PdtR-0001tf-00
	for <submit@bugs.debian.org>; Mon, 05 Feb 2001 00:08:49 -0500
Date: Mon, 5 Feb 2001 00:08:49 -0500
To: submit@bugs.debian.org
Subject: Gnome logout doesn't give option to halt or reboot machine
Message-ID: <20010205000849.A7256@falooley.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.12i
From: Jason Lunz <j@falooley.org>
Delivered-To: submit@bugs.debian.org


Package: gnome-panel
Version: 1.2.4-helix2

This is pretty easy to fix, and the only reason I'm submitting this bug
report without a patch is that I don't know the proper Debian way to do
it.

In the gnome-core source, this code tries to determine whether the user
has permission to shut down the machine (gnome-core 1.2.4-helix2,
gsm/logout.c, line 228):

  /* 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
   */
  s = g_strconcat ("/var/lock/console/", g_get_user_name (), NULL);
  if ((geteuid () == 0 || g_file_exists (s)) &&
      g_file_exists (halt_command[0]))
    {

It doesn't appear that debian uses /var/lock/console/<username>, and
halt_command[0] is /usr/bin/shutdown. It should be /sbin/shutdown on
debian.  Creating these files causes the panel logout dialog to give the
reboot/shutdown options.

I'll be happy to submit a patch if someone more knowledgable than I can
tell me the best way to determine whether the user can log out.

thanks,

Jason

---------------------------------------
Received: (at 84920-done) by bugs.debian.org; 6 Jun 2004 00:51:34 +0000
>From marc@marcbrockschmidt.de Sat Jun 05 17:51:34 2004
Return-path: <marc@marcbrockschmidt.de>
Received: from gandalf.marclanger.de [195.60.111.55] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BWlss-0003eI-00; Sat, 05 Jun 2004 17:51:34 -0700
Received: from p83.129.116.74.tisdip.tiscali.de ([83.129.116.74] helo=Asfaloth)
	by gandalf.marclanger.de with asmtp (TLS-1.0:RSA_ARCFOUR_SHA:16)
	(Exim 4.34)
	id 1BWlsr-0005JL-Aj
	for 84920-done@bugs.debian.org; Sun, 06 Jun 2004 02:51:33 +0200
Received: from localhost
	([127.0.0.1] helo=Asfaloth ident=identistdoof)
	by Asfaloth with esmtp (Exim 4.34)
	id 1BWlth-0001fd-9W
	for 84920-done@bugs.debian.org; Sun, 06 Jun 2004 02:52:25 +0200
To: 84920-done@bugs.debian.org
Subject: Fixed package now in unstable
From: Marc 'HE' Brockschmidt <marc@marcbrockschmidt.de>
Organization: CPU+Mainboard-FAQ: http://www.dch-faq.de/
User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through
 Obscurity, linux)
Date: Sun, 06 Jun 2004 02:52:19 +0200
Message-ID: <87y8n1cxto.fsf@asfaloth.marcbrockschmidt.de>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
	micalg=pgp-sha1; protocol="application/pgp-signature"
Delivered-To: 84920-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
	version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

--=-=-=

Hi,

The bug was fixed-in-experimental, a newer package was uploaded to sid
now, so we can close this thing...

Marc
-- 
BOFH #298:
Not enough interrupts

--=-=-=
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBAwmrImO5zOp3h7rERApxqAJ4yhzSkzSgXG3AWfNjxwBJ5eyGOeQCbBlLw
tsm9e93rL4Sn4Me75ucWdJU=
=iqvc
-----END PGP SIGNATURE-----
--=-=-=--