[Pkg-xfce-devel] Re: root-less setup for kde, xfce

Simon Huggins huggie at earth.li
Thu May 3 13:46:24 UTC 2007


On Thu, May 03, 2007 at 03:32:52PM +0200, Mathias Brodala wrote:
> Sorry to nag again, but …

> Simon Huggins, 03.05.2007 10:43:
> > On Thu, May 03, 2007 at 09:49:50AM +0200, Emanuele Rocca wrote:
> >> ----- Forwarded message from Joey Hess <joeyh at debian.org> -----
> >> From: Joey Hess <joeyh at debian.org>
> >> Date: Tue, 1 May 2007 17:14:34 -0400
> >> Subject: Bug#421837: root-less setup for kde, xfce
> >> Reply-To: Joey Hess <joeyh at debian.org>, 421837 at bugs.debian.org
> >> To: Debian Bug Tracking System <submit at bugs.debian.org>
> >> Message-ID: <20070501211434.GA3819 at kitenet.net>
> >> User-Agent: Mutt/1.5.13 (2006-08-11)
> >> user-setup has code to configure gnome to use sudo, if the system has no
> >> root password, but is missing equivilant setups for kde and xfce. I
> >> assume that both of these need special configs to use sudo for obtaining
> >> root.
> > That code should work for us.  xfce4-session will prompt for the
> > password when you try to reboot/shutdown so the:
> > 	echo "$USER ALL=(ALL) ALL" >> $ROOT/etc/sudoers
> > bit will suffice.
> … isn’t this overkill? The following should be enough for this and doesn’t
> introduce any other side-effects:

If you look at the code in question (you can grab it with apt-get source
user-setup) it's code in debian-installer to setup an install without a
root user.  This line is only added when this is the case.

> $USER  ALL=NOPASSWD:/usr/sbin/xfsm-shutdown-helper

Yup, that's what the README in xfce4-session recommends but given that
the above is added by user-setup during an install we don't need
anything else in sudoers.

> Um, and what is $ROOT?

It's a variable in that script.  It's pointing to the target install
(normally /target I think on d-i).

-- 
----------(   "Do they teach lawyers to apologise, because   )----------
----------(       you suck at it?" -- Erin Brockovich.       )----------
Simon ----(                                                  )---- Nomis
                             Htag.pl 0.0.22
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-xfce-devel/attachments/20070503/bf2b14d5/attachment.pgp


More information about the Pkg-xfce-devel mailing list