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 D005B1380DC for ; Wed, 5 Feb 2014 01:30:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 53411E0ABA; Wed, 5 Feb 2014 01:30:34 +0000 (UTC) Received: from mail.spahan.ch (mail.spahan.ch [88.198.81.77]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E5BA2E0A72 for ; Wed, 5 Feb 2014 01:30:32 +0000 (UTC) Received: from [192.168.35.69] (84-73-180-200.dclient.hispeed.ch [84.73.180.200]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.spahan.ch (Postfix) with ESMTPSA id 7D097716002 for ; Wed, 5 Feb 2014 02:30:31 +0100 (CET) Message-ID: <52F19436.8010206@spahan.ch> Date: Wed, 05 Feb 2014 02:30:30 +0100 From: Poncho User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 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 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: going from systemd to udev References: <20140204195807.GG6850@syscon7.ed.shawcable.net> <52F15ED4.7060409@sporkbox.us> <87siryldes.fsf@nyu.edu> <52F1777B.9080200@gmail.com> In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: cfbafc61-8b4f-4720-acac-6909b421725d X-Archives-Hash: e71b3a8d4729c2c4460774f649d72ccb On 05.02.2014 01:10, Canek Peláez Valdés 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 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 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 of >>>> 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=466338