What are the default users for the Ubuntu LAMP 14.04

February 13, 2017 305 views
System Tools Ubuntu

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?

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 give you a solid foundation. In this guide, we'll walk you through the basic steps necessary to hit the ground running with Ubuntu 14.04.
Have another answer? Share your knowledge.