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 16:14:30 +0100 Message-ID: <87k1gk2vu1.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> <8736n84n74.fsf@elephly.net> <8736n8pofv.fsf@ambrevar.xyz> <87y350376g.fsf@elephly.net> <87bm1wcqaq.fsf@gnu.org> 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]:46147) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h9AGR-0007wx-Fw for guix-devel@gnu.org; Wed, 27 Mar 2019 11:14:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h9AGQ-0005cP-I4 for guix-devel@gnu.org; Wed, 27 Mar 2019 11:14:51 -0400 In-reply-to: <87bm1wcqaq.fsf@gnu.org> 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: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: Guix-devel Ludovic Court=C3=A8s writes: > Ricardo Wurmus skribis: > >> Pierre Neidhardt writes: >> >>> Ricardo Wurmus writes: >>> >>>> I suppose /etc/pam.d/ also needs to be in the container. >>> >>> Tried it, same error. >>> >>>>> 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 con= tainer >>>> instead of using a fixed UID? >>> >>> We have a "--user" option, so we could use the current user's UID when >>> --user is not specified, 1000 otherwise. >>> Or better: add a --uid CLI option. >> >> I can see confusion coming from the existence of both =E2=80=9C--user=E2= =80=9D and >> =E2=80=9C--uid=E2=80=9D. Maybe =E2=80=9C--user=E2=80=9D could take an o= ptional argument, with the >> default being the current user. Without =E2=80=9C--user=E2=80=9D we=E2= =80=99d use UID 1000. > > Currently, without --user, we keep the current user=E2=80=99s name. So i= t would > actually be consistent to inherit its UID as well. And with =E2=80=98--u= ser=E2=80=99, > we=E2=80=99d use the given user name and UID 1000. (Essentially what Pie= rre > proposed above.) Excellent, this sounds good. --=20 Ricardo