From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 55F151380DC for ; Wed, 5 Feb 2014 01:34:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5FF5BE0AEC; Wed, 5 Feb 2014 01:34:47 +0000 (UTC) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com [209.85.215.45]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DC682E0A96 for ; Wed, 5 Feb 2014 01:34:45 +0000 (UTC) Received: by mail-la0-f45.google.com with SMTP id b8so7236357lan.32 for ; Tue, 04 Feb 2014 17:34:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=x5EH1dMwLoR6+kAeV26ZzBAPKA4SWsYb1z/pS/IbvR0=; b=u4vxYr7n8BGSjuHr5wZ13SIroLL7hwhOJC01nzFV/iuWS2j/NyciOyVoCVWOyD1gJc 5IydKukEChXgIunrZTZ3MwrTldDAV5PRR5OP2jnXV8M9V5TfJKrVw2UojePKbnCcSgry pITDpO+j9l43ZefZM7SwzAdhZpsDX6bcgtNxcsSTYpdQjy8/6/q89Fh7vJJqERCkMvx7 HJvRdZtiMIbZSfIKuwO6KM4jABpBhBPcOhEiMWqXJi5PVLsaDKqrdxk1jJMq85lrIlJt AwfMukOpqaZbHza4PfcDK8Nap+AOQK+xOKhYE5vh/ONYfNIv/EU1aTIAaDZzbDb1e1Uf xJJQ== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 X-Received: by 10.112.125.225 with SMTP id mt1mr7801351lbb.35.1391564084029; Tue, 04 Feb 2014 17:34:44 -0800 (PST) Received: by 10.114.170.67 with HTTP; Tue, 4 Feb 2014 17:34:43 -0800 (PST) Received: by 10.114.170.67 with HTTP; Tue, 4 Feb 2014 17:34:43 -0800 (PST) In-Reply-To: <52F19436.8010206@spahan.ch> References: <20140204195807.GG6850@syscon7.ed.shawcable.net> <52F15ED4.7060409@sporkbox.us> <87siryldes.fsf@nyu.edu> <52F1777B.9080200@gmail.com> <52F19436.8010206@spahan.ch> Date: Tue, 4 Feb 2014 19:34:43 -0600 Message-ID: Subject: Re: [gentoo-user] Re: going from systemd to udev From: =?UTF-8?B?Q2FuZWsgUGVsw6FleiBWYWxkw6lz?= To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary=089e0112bfb8e92ced04f19ec2c6 X-Archives-Salt: e9b249a4-0733-4691-a038-5bf9f18ed3dd X-Archives-Hash: 3ad09d59ae6e4dd10ffa0d75b6fa177d --089e0112bfb8e92ced04f19ec2c6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Feb 4, 2014 7:30 PM, "Poncho" wrote: > > On 05.02.2014 01:10, Canek Pel=C3=A1ez Vald=C3=A9s wrote: > > On Tue, Feb 4, 2014 at 5:27 PM, walt wrote: > >> On 02/04/2014 02:29 PM, gottlieb@nyu.edu wrote: > >>> On Tue, Feb 04 2014, Daniel Campbell wrote: > >>> > >>>> On 02/04/2014 01:58 PM, Joseph wrote: > >>>>> Is it possible to go from "systemd" to "udev"? > >>>>> > >>>>> I don't like the way systemd works. I have a problem with mounting USB > >>>>> sick (it mounts as root:root) and I can not even change the permission. > >>>>> I am receiving Hylafax fax transmission reports (email) on all incoming > >>>>> faxes and now these emails are empty. > >>>>> It all start happening after switching to systemd :-( > >>>>> > >>>> > >>>> systemd and udev are part of the same project, so I believe what you > >>>> meant was switching from systemd to OpenRC. I've not made such a switch, > >>>> but if you remember the steps you took, you can generally just reverse > >>>> them. That is, emerge openrc again, change the kernel line in GRUB t= o > >>>> point to regular init instead of systemd's init, reboot, and things > >>>> *should* fall into place. > >>>> > >>>> USB drives mounting as root sounds like a udev thing rather than a > >>>> systemd thing, and switching to OpenRC for your init won't fix it afaik. > >>>> For the devices that you need this behavior for, it might be worth > >>>> looking into writing some udev rules. You can get a start by consulting > >>>> `lsusb` output and Googling for 'udev rules' to get a wide variety o= f > >>>> guides for writing udev rules. Despite the recent changes to udev by the > >>>> systemd team, udev still functions mostly the same and most guides will > >>>> be accurate. > >>>> > >>>> I hope this helps! > >>>> > >>>> ~Daniel > >>> > >>> There are changes in USE. -systemd +consolekit > >>> If you switched to a systemd profile, switch back. > >> > >> I'm sure that unsetting the consolekit useflag (when I switched to systemd) > >> resulted in some non-MicroSoft behavior, e.g. I now need to authenticate as > >> root when plugging or ejecting a USB stick, and yet again when I poweroff or > >> reboot the machine > > > > This does not happen with GNOME 3. At all. The only time I'm asked for > > my root password is when I add or remove a printer, and > > app-admin/system-config-printer-gnome has been doing this since the > > very beginning. I'm still hoping that someone fix that thing. > > > >> Being the only user of this machine, I could work up some outrage over this > >> new PITA -- but I've decided not to be outraged. I pretend to be a sysadmin > >> and imagine how I would feel if an arbitrary user demanded the ability to > >> plug any arbitrary USB stick into his corporate workstation. > >> > >> Well, I'm not a corporate sysadmin, and never will be, but I think I'd be > >> reluctant to let him do it. > >> > >> Any official sysadmins out there have an infallible opinion to offer? > > > > With GNOME+systemd (and therefore, logind), the seat0 user gets > > ownership of all removable devices (except printers, see above), and > > the hardware buttons (poweroff, reset, suspend, etc.) No root password > > asked. Ever. > > > > You can see your seat with loginctl; if your seat is not seat0, that's > > why your password is being asked. If it's seat0, then something else > > is going on. Do you have pam_systemd.so enabled in /etc/pam.d? > > > > Regards. > > > > Concerning the printer permissions, see > https://bugs.gentoo.org/show_bug.cgi?id=3D466338 Thanks, I will take a look. Regards. --089e0112bfb8e92ced04f19ec2c6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Feb 4, 2014 7:30 PM, "Poncho" <poncho@spahan.ch> wrote:
>
> On 05.02.2014 01:10, Canek Pel=C3=A1ez Vald=C3=A9s wrote:
> > On Tue, Feb 4, 2014 at 5:27 PM, walt <w41ter@gmail.com> wrote:
> >> On 02/04/2014 02:29 PM, g= ottlieb@nyu.edu wrote:
> >>> On Tue, Feb 04 2014, Daniel Campbell wrote:
> >>>
> >>>> On 02/04/2014 01:58 PM, Joseph wrote:
> >>>>> Is it possible to go from "systemd" to = "udev"?
> >>>>>
> >>>>> I don't like the way systemd works. =C2=A0I h= ave a problem with mounting USB
> >>>>> sick (it mounts as root:root) and I can not even = change the permission.
> >>>>> I am receiving Hylafax fax transmission reports (= email) on all incoming
> >>>>> faxes and now these emails are empty.
> >>>>> It all start happening after switching to systemd= :-(
> >>>>>
> >>>>
> >>>> systemd and udev are part of the same project, so I b= elieve what you
> >>>> meant was switching from systemd to OpenRC. I've = not made such a switch,
> >>>> but if you remember the steps you took, you can gener= ally just reverse
> >>>> them. That is, emerge openrc again, change the kernel= line in GRUB to
> >>>> point to regular init instead of systemd's init, = reboot, and things
> >>>> *should* fall into place.
> >>>>
> >>>> USB drives mounting as root sounds like a udev thing = rather than a
> >>>> systemd thing, and switching to OpenRC for your init = won't fix it afaik.
> >>>> For the devices that you need this behavior for, it m= ight be worth
> >>>> looking into writing some udev rules. You can get a s= tart by consulting
> >>>> `lsusb` output and Googling for 'udev rules' = to get a wide variety of
> >>>> guides for writing udev rules. Despite the recent cha= nges to udev by the
> >>>> systemd team, udev still functions mostly the same an= d most guides will
> >>>> be accurate.
> >>>>
> >>>> I hope this helps!
> >>>>
> >>>> ~Daniel
> >>>
> >>> There are changes in USE. =C2=A0 -systemd +consolekit
> >>> If you switched to a systemd profile, switch back.
> >>
> >> I'm sure that unsetting the consolekit useflag (when I sw= itched to systemd)
> >> resulted in some non-MicroSoft behavior, e.g. I now need to a= uthenticate as
> >> root when plugging or ejecting a USB stick, and yet again whe= n I poweroff or
> >> reboot the machine
> >
> > This does not happen with GNOME 3. At all. The only time I'm = asked for
> > my root password is when I add or remove a printer, and
> > app-admin/system-config-printer-gnome has been doing this since t= he
> > very beginning. I'm still hoping that someone fix that thing.=
> >
> >> Being the only user of this machine, I could work up some out= rage over this
> >> new PITA -- but I've decided not to be outraged. =C2=A0I = pretend to be a sysadmin
> >> and imagine how I would feel if an arbitrary user demanded th= e ability to
> >> plug any arbitrary USB stick into his corporate workstation.<= br> > >>
> >> Well, I'm not a corporate sysadmin, and never will be, bu= t I think I'd be
> >> reluctant to let him do it.
> >>
> >> Any official sysadmins out there have an infallible opinion t= o offer?
> >
> > With GNOME+systemd (and therefore, logind), the seat0 user gets > > ownership of all removable devices (except printers, see above), = and
> > the hardware buttons (poweroff, reset, suspend, etc.) No root pas= sword
> > asked. Ever.
> >
> > You can see your seat with loginctl; if your seat is not seat0, t= hat's
> > why your password is being asked. If it's seat0, then somethi= ng else
> > is going on. Do you have pam_systemd.so enabled in /etc/pam.d? > >
> > Regards.
> >
>
> Concerning the printer permissions, see
> https://b= ugs.gentoo.org/show_bug.cgi?id=3D466338

Thanks, I will take a look.

Regards.

--089e0112bfb8e92ced04f19ec2c6--