Re: Allowing User to Shut Down System

Morten Juhl-Johansen Zölde-Fejér <[email protected]>
Newsgroups gmane.linux.slackware
Message-ID <[email protected]>
On Sun, 04 Mar 2012 15:23:52 +0000
John Crowhurst <[email protected]> wrote:

> On 04/03/2012 15:17, Srdjan Todorovic wrote:
> > On 4 March 2012 15:06, Rich Shepard<[email protected]>
> > wrote:
> >
> >> come up upon login, but the immediate issue is why, after
> >> creating .xinitrc for her account, she can no longer shut down the
> >> system when she's finished.
> >>
> >>   Have not before seen this behavior with Xfce, and I've used that
> >> since 1997.
> > I thought .xinitrc is something that only ancient systems needed :-P
> > I think I've only ever seen this file on machines running twm nearly
> > 10 years ago.
> >
> > In any case, I'd review what's in .xinitrc and see how much of it
> > is necessary. You could move that file somewhere else and see if
> > xfce4 still has trouble.
> .xinitrc tells X what display manager you are using (KDE, xfce4, etc) 
> and overrides the default.
> 
> Run visudo and add:
> %users ALL=(root) NOPASSWD: /usr/libexec/xfsm-shutdown-helper
> 
> That may be the solution you are looking for.

It used to be, at least. The last couple of times I have not needed to
put it in when I have had Slim log me in.
Speaking of which: Slim uses the .xinitrc to set up the choices between
which window managers/DEs you can log into. I usually just create one
with the executable line - openbox-session or startxfce4.

All the best,
M
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.