Xfce Forum

Sub domains
 

You are not logged in.

#1 2009-03-07 22:07:21

Squall
Member
Registered: 2009-03-07
Posts: 24

[Solved] Can't shutdown, only logout

Hi there,

on my PC is Archlinux with Xfce4.6 with SLiM as login manager running. It work's well, except of the shutdown. :cry:
Every button is grey/unavailable excluding the logout one.

Does somebody know, how to fix it?


Regards,
Squall

Offline

#2 2009-03-08 03:40:31

SimonJ
Member
From: Perth
Registered: 2006-09-06
Posts: 135
Website

Re: [Solved] Can't shutdown, only logout

I don't know your setup but they greyed out buttons you describe resemble a session started from the TTY and not a login manager. I would check the info on the Slim login manager and see what it supports.


Simon.                                                         (^_^)

TIP: Proofread carefully to see if you any words out.
=====================================================================

Offline

#3 2009-03-08 08:27:17

Pindakoe
Member
From: NL
Registered: 2003-11-26
Posts: 116

Re: [Solved] Can't shutdown, only logout

You also should have access to shut a PC down via Xfce's session manager. This is done via /etc/sudoers, following line:

username localhost = NOPASSWD: /usr/lib/xfsm-shutdown-helper

Replacing username by %users gives all users access to shutdown. You can edit the sudoers file with the command visudo (but only as root).

Offline

#4 2009-03-09 12:44:29

diilbert
Member
Registered: 2009-03-09
Posts: 2

Re: [Solved] Can't shutdown, only logout

Pindakoe wrote:

You also should have access to shut a PC down via Xfce's session manager. This is done via /etc/sudoers, following line:

username localhost = NOPASSWD: /usr/lib/xfsm-shutdown-helper

Replacing username by %users gives all users access to shutdown. You can edit the sudoers file with the command visudo (but only as root).

It is actually smile

username localhost = NOPASSWD: /usr/sbin/xfsm-shutdown-helper

Offline

#5 2009-03-09 15:16:26

Squall
Member
Registered: 2009-03-07
Posts: 24

Re: [Solved] Can't shutdown, only logout

Hi there,

thanks for your answers.
I tried it with sudo (before I hadn't it installed), but it still doesn't work. In Archlinux the path to xfsm-shutdown-helper is /usr/lib/xfce4/xfsm-shutdown-helper.
My line in "visudo" is:

christian localhost = NOWPASSWD: /usr/lib/xfce4/xfsm-shutdown-helper

Perhaps there's something wrong in my line?

A friend of mine, who also uses Archlinux with Xfce says it works with gdm. Maybe I should try gdm?


Regards,
Squall

Offline

#6 2009-03-09 18:51:57

Pindakoe
Member
From: NL
Registered: 2003-11-26
Posts: 116

Re: [Solved] Can't shutdown, only logout

Hmmm -- this gets beyond my knowledge (also -- I do not know SLiM or what sort of specifics it may have). Just one question to be certain -- SLiM is starting Xfce via a call to xfce4-session (similar point as made by SimonJ)?

Offline

#7 2009-03-09 21:45:28

Wapush
Member
Registered: 2006-12-14
Posts: 140

Re: [Solved] Can't shutdown, only logout

Squall wrote:

christian localhost = NOWPASSWD: /usr/lib/xfce4/xfsm-shutdown-helper

Perhaps there's something wrong in my line?

You can try with NOPASSWD rather than NOWPASSWD

Offline

#8 2009-03-09 23:21:06

eriefisher
Member
From: ON, Canada
Registered: 2008-10-25
Posts: 395

Re: [Solved] Can't shutdown, only logout

How is slim staring xfce? Does it use .xinitrc, .xsessions or just startx?

I use slim with .xinitrc and use this line:

*)
    exec startxfce4
    ;;

This is with 4.4.2 though.


Siduction
Debian Sid
Xfce 4.18

Offline

#9 2009-03-10 12:22:09

xfcelav
Member
From: /var/www/xfcelav
Registered: 2008-04-10
Posts: 96
Website

Re: [Solved] Can't shutdown, only logout

Try this:

addgroup your_user powerdev


url: blog.desdelinux.net
twt: @elavdeveloper

Offline

#10 2009-03-10 17:13:40

Squall
Member
Registered: 2009-03-07
Posts: 24

Re: [Solved] Can't shutdown, only logout

eriefisher wrote:

How is slim staring xfce? Does it use .xinitrc, .xsessions or just startx?

I use slim with .xinitrc and use this line:

*)
    exec startxfce4
    ;;

This is with 4.4.2 though.

Pindakoe wrote:

Hmmm -- this gets beyond my knowledge (also -- I do not know SLiM or what sort of specifics it may have). Just one question to be certain -- SLiM is starting Xfce via a call to xfce4-session (similar point as made by SimonJ)?

It uses .xinitrc as it seems. First, when I don't had a .xinitrc file, I must create one to login with SLiM.
The content of my .xinitrc file is:

exec ck-launch-session startxfce4
Wapush wrote:

You can try with NOPASSWD rather than NOWPASSWD

Sorry, it was. I couldn't copy it out of my console, so I had to type it. roll

xfcelav wrote:

Try this:

addgroup your_user powerdev

My system doesn't provide the tool addgroup, but I tried with gpasswd -a christian powerdev and it told me:

unknown group: powerdev
gpasswd: Permission denied.




And then I've tried using gdm but it still does not work. I start gdm with /etc/inittab ->

x:5:respawn:/usr/sbin/gdm -nodaemon

If it doesn't work with SLiM nor with gdm, what can I do? :-(


Regards,
Squall

Offline

#11 2009-03-10 19:17:08

Squall
Member
Registered: 2009-03-07
Posts: 24

Re: [Solved] Can't shutdown, only logout

Okay, I think I got the problem!
In the sudo configuration I wrote:

christian localhost=NOPASSWD:/usr/lib/xfce4/xfsm-shutdown-helper

A friend gave me a link to the Archwiki: http://wiki.archlinux.org/index.php/All … _way:_Xfce
I noticed, that I have to add my hostname, which I can figure out with the command "hostname". (I didn't need it, because I know the hostname of my Arch. ;D I just needed it to realize, that I cannot use localhost.
After replacing localhost by tux (my hostname lol), it worked.

Thanks a lot for your answer! smile

Offline

#12 2009-03-11 08:46:55

wlkngowl
Member
From: Between Heaven and Earth
Registered: 2005-11-11
Posts: 77

Re: [Solved] Can't shutdown, only logout

I used to not have this problem, then realised that when I did (after suspending my laptop instead of shutting down).

I remembered what changed: I went to Session and Startup, and in the General tab enable "Prompt on logout".

Offline

#13 2011-04-21 18:03:21

bohu
Member
Registered: 2011-03-23
Posts: 8

Re: [Solved] Can't shutdown, only logout

I don't remember what hostname I set at install. How do I find out?

Offline

#14 2011-04-24 08:29:12

jeromeg
Member
From: France
Registered: 2010-11-11
Posts: 131
Website

Re: [Solved] Can't shutdown, only logout

bohu: "hostname" in a terminal

Offline

Board footer

Powered by FluxBB