From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: Audio/sound (ALSA) in guix environment --container Date: Wed, 27 Mar 2019 11:38:07 +0100 Message-ID: <8736n84n74.fsf@elephly.net> References: <874l7wgg75.fsf@bababa.i-did-not-set--mail-host-address--so-tickle-me> <878sx1h817.fsf@gnu.org> <87bm1x4kmb.fsf@elephly.net> <87d0mcpqy7.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:47423) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h95wu-0002W3-EY for guix-devel@gnu.org; Wed, 27 Mar 2019 06:38:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h95wt-0005Kh-Ff for guix-devel@gnu.org; Wed, 27 Mar 2019 06:38:24 -0400 In-reply-to: <87d0mcpqy7.fsf@ambrevar.xyz> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Pierre Neidhardt Cc: Guix-devel Pierre Neidhardt writes: > I've just "guix pull"ed and I get the following: > > --8<---------------cut here---------------start------------->8--- >> guix environment --container --ad-hoc coreutils shadow=20 > # id > uid=3D0(ambrevar) gid=3D0(users) groups=3D0(users),65534(overflow) > # groupadd audio > groupadd: PAM: Critical error - immediate abort > # useradd foo > useradd: PAM: Critical error - immediate abort > --8<---------------cut here---------------end--------------->8--- > > Any idea where to go from here? I suppose /etc/pam.d/ also needs to be in the container. > Ricardo Wurmus writes: > >> I agree. Defaulting to UID 0 is not good. (=E2=80=9Cconda=E2=80=9D is = an example of >> one application that has very different behaviour when it thinks it is >> running as root.) > > What about defaulting to 1000? It's rather common, so I guess that > would be anonymous enough and "just work". Would it make sense to map the current user=E2=80=99s UID into the container instead of using a fixed UID? --=20 Ricardo