How to add shutdown option to the Ubuntu lock screen?

Solution 1:

You actually don't need to add shutdown to that menu.

You can click on Switch Account and you'll have Shutdown on the new screen's menu.

That way, it's possible to shut the computer down without logging in first. That works on ubuntu 14.04 LTS and 16.04 LTS.