Opened 3 years ago
Closed 14 months ago
#64286 closed defect (fixed)
postgresql96-server creates an account that appears in fast user switching
Reported by: | essandess (Steve Smith) | Owned by: | jyrkiwahlstedt |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ||
Port: | postgresql96-server |
Description
postgresql96-server
creates an account that appears in fast user switching because it unnecessarily sets the shell to /bin/sh
.
To fix this on an existing account, set:
sudo dscl . -change /Users/postgres UserShell /bin/sh /usr/bin/false
Change History (7)
comment:1 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
Owner: | set to jyrkiwahlstedt |
---|---|
Port: | postgresql96-server added |
Status: | new → assigned |
comment:2 follow-up: 3 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
Looks like base sets a newly created user's shell to /usr/bin/false by default, if the portfile doesn't override it. So the fix would be for postgresql*-server not to set shell, unless of course there is some reason why it requires this.
Unfortunately as far as I know there is no provision in MacPorts base for a port to alter its user account after it has been created.
comment:3 Changed 3 years ago by essandess (Steve Smith)
Please see https://github.com/macports/macports-ports/pull/13463.
Replying to ryandesign:
Looks like base sets a newly created user's shell to /usr/bin/false by default, if the portfile doesn't override it. So the fix would be for postgresql*-server not to set shell, unless of course there is some reason why it requires this.
Unfortunately as far as I know there is no provision in MacPorts base for a port to alter its user account after it has been created.
comment:4 Changed 3 years ago by essandess (Steve Smith)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:5 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | fixed |
---|---|
Status: | closed → reopened |
That only fixes one of the many postgresql*-server ports. Please fix them all the same way.
comment:6 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
Also, you need to increase the revision in order for the change to take effect for any users who already installed the ports.
comment:7 Changed 14 months ago by dgilman (David Gilman)
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
This appears to apply also to the other postgresql*-server ports as well as many other portfiles.
Another longstanding issue with the way postgresql*-server creates its user account is #24180.