Question

What are the default users for the Ubuntu LAMP 14.04

Posted February 13, 2017 4k views
Ubuntu System Tools

I am trying to determine if any extra users are present on a webserver running the Ubuntu LAMP 14.04 one-click application. Could I get a list of the default users on this image?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

1 answer

The ‘only’ user on Ubuntu LAMP is root user which you access by default.
They other users, which are here to support running services, but you can’t login to them or use them beside service for which they are made.
One example of this user is www-data which is here for web servers.

To list all users, you can use command:

  • cat /etc/passwd
Example output
root:x:0:0:root:/root:/bin/bash daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin bin:x:2:2:bin:/bin:/usr/sbin/nologin ...

It shows user and shell for user (what they see once they log in).

You can create your own user and you’re recommended to create a new non-root user for managing server. Steps for doing so are covered in Initial Server Set Up - Ubuntu 14.04.

by Justin Ellingwood
When you start a new server, there are a few steps that you should take every time to add some basic security and set a solid foundation. In this guide, we'll walk you through the basic steps necessary to hit the ground running with Ubuntu 14.04.
Submit an Answer