Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 416783 - sys-apps/shadow-4.1.5 dev-db/postgresql-server cannot start via initscript "su: Cannot drop the controlling terminal"
Summary: sys-apps/shadow-4.1.5 dev-db/postgresql-server cannot start via initscript "s...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
Keywords: PullRequest
Depends on:
Blocks: 448806
  Show dependency tree
Reported: 2012-05-20 19:01 UTC by Stefan de Konink
Modified: 2023-02-11 20:56 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Stefan de Konink 2012-05-20 19:01:13 UTC
I have a similar problem as decribed below;

I can start postgresql manually. But when started upon boot in runlevel default it fails with;

su: Cannot drop the controlling terminal
The following file(s) are not readable by 'postgres':

Obviously they are readable by postgres, and a /etc/init.d/postgresql-9.1 start, does work. shadow-4.1.5-r2 is installed. I have tried to disable acl, by noacl in the kernel, doesn't make any difference.

Reproducible: Always
Comment 1 Aaron W. Swenson gentoo-dev 2012-05-21 02:56:59 UTC
Try downgrading shadow back to stable. (sys-apps/shadow-

As mentioned in one of the threads, there's a regression in su.
Comment 2 Stefan de Konink 2012-05-21 17:27:48 UTC
Downgrading works.
Comment 3 Aaron W. Swenson gentoo-dev 2012-12-27 11:43:33 UTC
PostgreSQL's initscript uses 'start-stop-daemon' instead of 'su' now. (It has for a while, actually.)

This issue is not singular to PostgreSQL, though.