all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Martin Baulig <martin@baulig.is>
To: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Cc: "guix-devel@gnu.org" <guix-devel@gnu.org>
Subject: Re: Postgres user UID and GID
Date: Wed, 19 Jul 2023 14:35:19 +0000	[thread overview]
Message-ID: <P3kqeRYgVXkoXMK0VgacVgLBecEwnWmrUqgR9ij4cuQMHhk6G8c59Q1UXui9_IoJHBIlwamRPAbQ5GFBaANZ75nQculXusLKQ4QDBNqexX0=@baulig.is> (raw)
In-Reply-To: <20230719001038.4232a249@primary_laptop>

Hello,

I played around a little bit with that, and it seems like you'll end up getting two entries for the
'postgres' user in your /etc/passwd if you just ignore the warning.  And the order doesn't seem to be
consistent.

Here in my current patch:
https://gitlab.com/martin-baulig/forks/guix/-/commit/5710b3bff17f4edaa7af397108e08f4dc842adef

And my current config is here:
https://gitlab.com/martin-baulig/config-and-setup/guix-packages/-/blob/work-postgres/packages/baulig/config/lothlorien/postgresql.scm#L25

I wasn't sure whether the (create-accout?) is really needed, probably not because you really need
that postgres service account.

Already wanted to remove that and submit a patch, but then got distracted by my new "secrets service".
I'm running some complex packages on GNU Guix - Bacula, Loki / Promtail and the GitLab Runner - and am
currently cleaning up things nicely, to possibly upstream some of that.

Best regards,

Martin

------- Original Message -------
On Tuesday, July 18th, 2023 at 10:10 PM, Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> wrote:


> 
> 
> On Mon, 17 Jul 2023 21:35:00 +0000
> Martin Baulig martin@baulig.is wrote:
> 
> > If I use the unmodified service and with the (operating-system (user
> > ...)) entry, it works sometimes, but not reliably due to having two
> > conflicting entries for the 'postgres' user.
> 
> I see. So if I touch too much my system it could break at any time then.
> 
> Denis.


  reply	other threads:[~2023-07-19 14:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-17 18:06 Postgres user UID and GID Martin Baulig
2023-07-17 19:49 ` Denis 'GNUtoo' Carikli
2023-07-17 21:35   ` Martin Baulig
2023-07-18 22:10     ` Denis 'GNUtoo' Carikli
2023-07-19 14:35       ` Martin Baulig [this message]
2023-07-17 20:23 ` Felix Lechner via Development of GNU Guix and the GNU System distribution.
2023-07-17 21:28   ` Martin Baulig

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='P3kqeRYgVXkoXMK0VgacVgLBecEwnWmrUqgR9ij4cuQMHhk6G8c59Q1UXui9_IoJHBIlwamRPAbQ5GFBaANZ75nQculXusLKQ4QDBNqexX0=@baulig.is' \
    --to=martin@baulig.is \
    --cc=GNUtoo@cyberdimension.org \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.