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:
Scott Moser 2011-01-19 03:53:53 +00:00
parent 134fa8d255
commit bb37cc6a8e

View File

@ -68,7 +68,7 @@ def apply_credentials(keys, user, disable_root):
setup_user_keys(keys, user, '')
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:
key_prefix = ''