← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1437350] Re: Don't use exit status 0 when rejecting login as root

 

Won't fix in cloud-init because we don't want to break backwards
compatibility.

** Changed in: cloud-init
       Status: In Progress => Invalid

** Changed in: cloud-init
       Status: Invalid => Opinion

** Changed in: cloud-init
       Status: Opinion => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1437350

Title:
  Don't use exit status 0 when rejecting login as root

Status in CirrOS a tiny cloud guest:
  In Progress
Status in Init scripts for use on cloud images:
  Invalid

Bug description:
  $ ssh -i mykey root@10.1.0.2 ls
  Warning: Permanently added '10.1.0.2' (RSA) to the list of known hosts.
  Please login as 'cirros' user, not as root

  $ echo $?
  0

  Since the command is not executed the exit status should be non 0.

  
  /root/.ssh/authorized_keys:
  command="echo Please login as \'cirros\' user, not as root; echo; sleep 10" this part should be changed to:
  "echo Please login as \'cirros\' user, not as root; echo; sleep 10; exit 1"

To manage notifications about this bug go to:
https://bugs.launchpad.net/cirros/+bug/1437350/+subscriptions