<feed xmlns='http://www.w3.org/2005/Atom'>
<title>aports/main/postgresql/postgresql.pre-install, branch v3.11.5</title>
<subtitle>Main aports tree
</subtitle>
<link rel='alternate' type='text/html' href='https://git-old.alpinelinux.org/aports/'/>
<entry>
<title>main/postgresql: create postgres account</title>
<updated>2019-07-23T09:27:10+00:00</updated>
<author>
<name>Sören Tempel</name>
<email>soeren+git@soeren-tempel.net</email>
</author>
<published>2019-07-22T17:57:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git-old.alpinelinux.org/aports/commit/?id=16f9f0de85fd8a19ed735cc87cb9844dd4b52ac6'/>
<id>16f9f0de85fd8a19ed735cc87cb9844dd4b52ac6</id>
<content type='text'>
This change was made due to complains that /etc/passwd contains system
accounts with login shells, postgres being one of them [0].

Setting the shell of the postgres account to /sbin/nologin was not
deemed feasible as the official document suggests login in as the
postgres user via su(1) [1]. Other Linux distribution (Debian, Gentoo,
Arch) also create the account with a shell.

Not creating the postgres account by default (via alpine-baselayout) and
instead creating it on demand from the package was deemed a reasonable
compromise.

[0]: https://gitlab.alpinelinux.org/alpine/aports/issues/10579
[1]: https://wiki.postgresql.org/wiki/First_steps
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This change was made due to complains that /etc/passwd contains system
accounts with login shells, postgres being one of them [0].

Setting the shell of the postgres account to /sbin/nologin was not
deemed feasible as the official document suggests login in as the
postgres user via su(1) [1]. Other Linux distribution (Debian, Gentoo,
Arch) also create the account with a shell.

Not creating the postgres account by default (via alpine-baselayout) and
instead creating it on demand from the package was deemed a reasonable
compromise.

[0]: https://gitlab.alpinelinux.org/alpine/aports/issues/10579
[1]: https://wiki.postgresql.org/wiki/First_steps
</pre>
</div>
</content>
</entry>
</feed>
