Univention Bugzilla – Bug 36758
world readable /etc/ldap.secret on Ubuntu
Last modified: 2015-08-21 15:52:15 CEST
<http://docs.univention.de/domain.html#ext-dom-ubuntu> > echo "${password}" > /etc/ldap.secret 1. Use »printf '%s' "$password"« to get rid of the trailing \n (»echo -n« is not portable) 2. Add missing »chmod 0400 /etc/ldap.secret« to protect file. While you are at it: > # Exit sudo bash > exit ... > # Become root > sudo bash > > # Set some environment variables > . /etc/univention/ucr_master why is that split into two block where the start of block 2 just undoes what is lost by the exit of block 1?
(In reply to Philipp Hahn from comment #0) > <http://docs.univention.de/domain.html#ext-dom-ubuntu> > > echo "${password}" > /etc/ldap.secret > > 1. Use »printf '%s' "$password"« to get rid of the trailing \n (»echo -n« is > not portable) > 2. Add missing »chmod 0400 /etc/ldap.secret« to protect file. r57535 | Bug #36758 doc: Fix Ubuntu docu > While you are at it: > > > # Exit sudo bash > > exit > ... > > # Become root > > sudo bash > > > > # Set some environment variables > > . /etc/univention/ucr_master > > why is that split into two block where the start of block 2 just undoes what > is lost by the exit of block 1? There is descriptive text in between, so not changed. But added the comme nt "Exit sudo bash" to all following sections, were it was missing.
OK: Change to document I committed 2 small typo fixes in the same chapter with r57670. ->Verified
Released as http://docs.univention.de/domain-4.0.html#ext-dom-ubuntu