Received: from theta.ikke.info (theta.ikke.info [178.21.117.236]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id 5526622321B for <~alpine/devel@lists.alpinelinux.org>; Thu, 4 May 2023 05:46:22 +0000 (UTC) Received: from 3dfb56236b9a (mutt_mutt_run_e5cb00086352.postfix_default [192.168.80.4]) by theta.ikke.info (Postfix) with ESMTPS id 30A6A1441E3; Thu, 4 May 2023 05:46:19 +0000 (UTC) Date: Thu, 4 May 2023 05:46:18 +0000 From: Kevin Daudt To: Sven Kirmess Cc: ~alpine/devel@lists.alpinelinux.org Subject: Re: UID for admin user created by setup-alpine Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Thu, Apr 27, 2023 at 10:10:27PM +0200, Sven Kirmess wrote: > Is there a way to ensure the admin user created by setup-alpine has a > specific uid, instead of the default (1000)? > > I think I found the script that setup-alpine uses to create a user, and > that script doesn't have an option to ask for a UID: > < > https://gitlab.alpinelinux.org/alpine/alpine-conf/-/blob/master/setup-user.in > > > > Is that the correct script? And if yes, is there a reason why this option > is not present or could that be added? That's indeed the script that would create an admin user. That specific functionality is relateively new (introduced in Alpine 3.16), and the goal is to quickly make a (non-root) administrative user. So it does not have a lot of options to customize what it does. In that case it might be better to just create this user yourself after installation so that you can customize it however your want. Ofcourse, it's always possible to make a feature request or merge request to add this functionality in that project. Kevin