summaryrefslogtreecommitdiffstats
path: root/package/nodejs
diff options
context:
space:
mode:
authorLorenzo Catucci <lorenzo@sancho.ccd.uniroma2.it>2015-07-02 22:00:05 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-07-04 12:46:43 +0200
commit18fa4a32a67372aa8f3949b5273d7b43dd4ad4f9 (patch)
treedc999b8a26df22a3d1f5875a6df85bc159c02b27 /package/nodejs
parent9a42ba3eeba08e450762141be03156208f2b4de0 (diff)
downloadbuildroot-18fa4a32a67372aa8f3949b5273d7b43dd4ad4f9.tar.gz
buildroot-18fa4a32a67372aa8f3949b5273d7b43dd4ad4f9.zip
system: allow/disallow root login, accept encoded passwords
Currently, there are only two possibilities regarding the root account: - it is enabled with no password (the default) - it is enabled, using a clear-text, user-provided password This is deemed insufficient in many cases, especially when the .config file has to be published (e.g. for the GPL compliance, or any other reason.). Fix that in two ways: - add a boolean option that allows/disallows root login altogether, which defaults to 'y' to keep backward compatibility; - accept already-encoded passwords, which we recognise as starting with either of $1$, $5$ or $6$ (resp. for md5, sha256 or sha512). Signed-off-by: Lorenzo M. Catucci <lorenzo@sancho.ccd.uniroma2.it> [yann.morin.1998@free.fr: - don't add a choice to select between clear-text/encoded password, use a single prompt; - differentiate in the password hook itself; - rewrite parts of the help entry; - rewrite and expand the commit log ] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Arnout Vandecappelle <arnout@mind.be> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Tested-by: "Lorenzo M. Catucci" <lorenzo@sancho.ccd.uniroma2.it> Acked-by: "Lorenzo M. Catucci" <lorenzo@sancho.ccd.uniroma2.it> Tested-by: Gergely Imreh <imrehg@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/nodejs')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud