From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: Audio/sound (ALSA) in guix environment --container Date: Wed, 27 Mar 2019 16:03:57 +0100 Message-ID: <87bm1wcqaq.fsf@gnu.org> 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> 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]:44140) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h9A5w-0001it-M8 for guix-devel@gnu.org; Wed, 27 Mar 2019 11:04:01 -0400 In-Reply-To: <87y350376g.fsf@elephly.net> (Ricardo Wurmus's message of "Wed, 27 Mar 2019 12:10:03 +0100") 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: Ricardo Wurmus Cc: Guix-devel 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 cont= ainer >>> 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 op= tional 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 it = would actually be consistent to inherit its UID as well. And with =E2=80=98--use= r=E2=80=99, we=E2=80=99d use the given user name and UID 1000. (Essentially what Pierre proposed above.) Thoughts? :-) Ludo=E2=80=99.