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?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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 outputroot: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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.