Bug 36758 - world readable /etc/ldap.secret on Ubuntu
world readable /etc/ldap.secret on Ubuntu
Status: CLOSED FIXED
Product: UCS extended documentation
Classification: Unclassified
Component: Domain services / LDAP
unspecified
Other Linux
: P5 normal (vote)
: UCS 4.0-1-errata
Assigned To: Philipp Hahn
Erik Damrose
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-11-17 15:39 CET by Philipp Hahn
Modified: 2015-08-21 15:52 CEST (History)
2 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2014-11-17 15:39:09 CET
<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?
Comment 1 Philipp Hahn univentionstaff 2015-01-26 10:09:53 CET
(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.
Comment 2 Erik Damrose univentionstaff 2015-01-29 14:46:50 CET
OK: Change to document
I committed 2 small typo fixes in the same chapter with r57670.
->Verified
Comment 3 Moritz Muehlenhoff univentionstaff 2015-02-10 14:48:17 CET
Released as http://docs.univention.de/domain-4.0.html#ext-dom-ubuntu