make 'do not login as root' message more clear.
When the user attempts login as root, they see a message suggesting a different user. This changes that message from: Please login as the ubuntu user rather than root user. to Please login as the user "ubuntu" rather than the user "root".
This commit is contained in:
parent
134fa8d255
commit
bb37cc6a8e
@ -68,7 +68,7 @@ def apply_credentials(keys, user, disable_root):
|
|||||||
setup_user_keys(keys, user, '')
|
setup_user_keys(keys, user, '')
|
||||||
|
|
||||||
if disable_root:
|
if disable_root:
|
||||||
key_prefix = 'command="echo \'Please login as the %s user rather than root user.\';echo;sleep 10" ' % user
|
key_prefix = 'command="echo \'Please login as the user \\\"%s\\\" rather than the user \\\"root\\\".\';echo;sleep 10" ' % user
|
||||||
else:
|
else:
|
||||||
key_prefix = ''
|
key_prefix = ''
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user