User story #20675
closed
allow a user to pass a password to server create-user command
Added by Benoît PECCATTE over 2 years ago.
Updated about 2 years ago.
Category:
Server components
Description
This would allow automating user creation
- Status changed from New to In progress
- Assignee set to Benoît PECCATTE
- Status changed from In progress to Pending technical review
- Assignee changed from Benoît PECCATTE to Félix DALLIDET
- Pull Request set to https://github.com/Normation/rudder-agent/pull/359
- Target version changed from 7.0.1 to 7.0.2
- Target version changed from 7.0.2 to 7.0.3
- Status changed from Pending technical review to Pending release
- Fix check changed from To do to Error - Blocking
this does not work with an environement variable. Tested also with empty -p, or no quotes with same failure
# ADMIN_PASSWORD="truc" rudder server create-user -u machin
Usage:
htpasswd [-cimBdpsDv] [-C cost] passwordfile username
htpasswd -b[cmBdpsDv] [-C cost] passwordfile username password
htpasswd -n[imBdps] [-C cost] username
htpasswd -nb[mBdps] [-C cost] username password
-c Create a new file.
-n Don't update file; display results on stdout.
-b Use the password from the command line rather than prompting for it.
-i Read password from stdin without verification (for script usage).
-m Force MD5 encryption of the password (default).
-B Force bcrypt encryption of the password (very secure).
-C Set the computing time used for the bcrypt algorithm
(higher is more secure but slower, default: 5, valid: 4 to 31).
-d Force CRYPT encryption of the password (8 chars max, insecure).
-s Force SHA encryption of the password (insecure).
-p Do not encrypt the password (plaintext, insecure).
-D Delete the specified user.
-v Verify password for the specified user.
On other systems than Windows and NetWare the '-p' flag will probably not work.
The SHA algorithm does not use a salt and is less secure than the MD5 algorithm.
- Fix check changed from Error - Blocking to Checked
This bug has been fixed in Rudder 7.0.3 which was released today.
- Status changed from Pending release to Released
Also available in: Atom
PDF