[Pkg-shadow-devel] shadow 4.1.5 regression, use of su in start scripts

Juergen Daubert jue at jue.li
Sun Feb 19 11:49:54 UTC 2012


as of version 4.1.5 it seems no longer be possible to use su at system
start to run daemons as special users.

For example, I have a init script to start the http-proxy polipo as the 
user "polipo" at system start. 
The relevant line in my script /etc/rc.d/polipo looks like this:

   su -s /bin/sh -c /usr/bin/polipo polipo

With su from shadow 4.1.4.x this works just fine and runs polipo with 
the effective user "polipo", with 4.1.5 it doesn't but prints the error

  su: Cannot drop the controlling terminal

Running the script after system start from a terminal as root works.
This is on a CRUX linux system with sysvinit.

thanks and regards

More information about the Pkg-shadow-devel mailing list