Summary: | User-Line not added to /etc/shadow after fresh postgreSQL install | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Nick Fankhauser <nick> |
Component: | [OLD] Server | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED WORKSFORME | ||
Severity: | minor | CC: | esigra, hans.schou |
Priority: | High | ||
Version: | 2006.1 | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Nick Fankhauser
2006-10-12 11:42:36 UTC
this is because postgres was added to your /etc/passwd by baselayout rather than by enewuser which would have taken care of updating /etc/shadow since baselayout no longer provides postgres, and there isnt really anything we can do about this situation, this WORKSFORME *** Bug 151941 has been marked as a duplicate of this bug. *** > since baselayout no longer provides postgres, and there isnt really anything we
> can do about this situation, this WORKSFORME
Add the command below to the postgresql installation
[ -z "$(grep ^postgres: /etc/shadow)" ] && echo 'postgres:!:13380:0:99999:7:::' >> /etc/shadow
(In reply to comment #3) > Add the command below to the postgresql installation > > [ -z "$(grep ^postgres: /etc/shadow)" ] && echo 'postgres:!:13380:0:99999:7:::' > >> /etc/shadow > 1) That is not going to work on BSD systems 2) postgresql ebuilds use enewuser, so the correct solution is to remove postgres user from your local /etc/passwd and then re-emerge |