named won't accept -u parameter to change user
The init.d file of named calls:
start-stop-daemon --start --pidfile ${PIDFILE} \
--nicelevel ${NICELEVEL:-0} \
--exec /usr/sbin/named \
-- -u named ${CPU} ${OPTS}
resulting in an error:
named: -u with Linux threads not supported: no capabilities support or capabilities disabled at build time
As I understand it, the setting of a different user is not supported by named, if threading is enabled during build. If this is proven true, please, disable threading since modifying the init.d file to do the user settings doesn’t work, either:
start-stop-daemon --start --pidfile ${PIDFILE} \
--user named --group named \
--nicelevel ${NICELEVEL:-0} \
--exec /usr/sbin/named \
-- ${CPU} ${OPTS}
See also: https://forums.gentoo.org/viewtopic-t-891650-view-previous.html
Thanks,
Tiger
(from redmine: issue id 4281, created on 2015-06-08, closed on 2015-07-07)
- Relations:
- relates #4513 (closed)
- Changesets:
- Revision 6aaecf49 by Natanael Copa on 2015-06-23T06:49:39Z:
main/bind: enable caps
Neeed for -u option with multithread:
named: -u with Linux threads not supported: no capabilities support or
capabilities disabled at build time
ref #4281
- Revision a76ad7d1 by Natanael Copa on 2015-06-23T06:50:38Z:
main/bind: enable caps
Neeed for -u option with multithread:
named: -u with Linux threads not supported: no capabilities support or
capabilities disabled at build time
fixes #4281
(cherry picked from commit 6aaecf49dfa1786cf5939d337593cce8fc1ded80)