! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Shutting down the machine from a ltsp thin client session reboots the machine
Status:
RESOLVED: INVALID
Product:
Xfce4-session
Component:
General

Comments

Description Riccardo Magliocchetti 2009-02-18 19:47:51 CET
Subject says it all, the shutdown was clean so nothing terrible just very strange.

Environment is debian lenny.

I have these in server /var/log/messages but looks unrelated:
Feb 18 20:19:39 kernel: [ 1465.075269] ioctl32(xfce4-terminal:7841): Unknown cmd fd(8) cmd(0000530b){t:'S';sz:0} arg(f7e6dc8a) on /dev/pts/3
Feb 18 20:19:39 kernel: [ 1465.075269] ioctl32(xfce4-terminal:7841): Unknown cmd fd(8) cmd(0000530b){t:'S';sz:0} arg(f7e6dc8f) on /dev/pts/3
Feb 18 20:19:39 kernel: [ 1465.075269] ioctl32(xfce4-terminal:7841): Unknown cmd fd(8) cmd(0000530b){t:'S';sz:0} arg(f7e6dc96) on /dev/pts/3
Feb 18 20:24:38 shutdown[7876]: shutting down for system halt

/etc/sudoers was configured this way (yay for security!):
ALL	ALL=NOPASSWD: /usr/sbin/xfsm-shutdown-helper
Comment 1 Brian J. Tarricone (not reading bugmail) 2009-02-18 20:34:58 CET
I don't think this problem has anything to do with xfce... your syslog claims it got a halt command, so presumably there's something wrong with your kernel or init scripts.
Comment 2 Riccardo Magliocchetti 2009-02-19 06:54:20 CET
(In reply to comment #1)
> I don't think this problem has anything to do with xfce... your syslog claims
> it got a halt command, so presumably there's something wrong with your kernel
> or init scripts.

halt, reboot from command line work fine, pressing the power button works too.

Looking at xfsm-shutdown-helper.c the command that is executed to reboot should be something similar to this?

/usr/bin/sudo sudo -H -S -p password -- 1
Comment 3 Brian J. Tarricone (not reading bugmail) 2009-02-19 07:10:43 CET
I see... well, the sudo helper is pretty much unmaintained, and only there for systems that don't support HAL.  If you can use HAL, I'd strongly suggest you do so, otherwise you'll have to find the problem yourself.
Comment 4 Riccardo Magliocchetti 2009-02-19 20:26:41 CET
(In reply to comment #3)
> I see... well, the sudo helper is pretty much unmaintained, and only there for
> systems that don't support HAL.  If you can use HAL, I'd strongly suggest you
> do so, otherwise you'll have to find the problem yourself.

There's something wrong with the machine, typed halt and it rebooted :(

Feel free to close as invalid but i'm curious on how i can figure out if i'm using sudo or hal. The use of sudo is just a guess because i usually have to add the user to sudoers to have shutdown / reboot buttons active.
Comment 5 Brian J. Tarricone (not reading bugmail) 2009-02-19 20:37:53 CET
If you have further questions, bugzilla isn't the place for them...

Bug #4963

Reported by:
Riccardo Magliocchetti
Reported on: 2009-02-18
Last modified on: 2009-07-14

People

Assignee:
Brian J. Tarricone (not reading bugmail)
CC List:
0 users

Version

Attachments

Additional information