Linux User Fundamentals
Understanding User Accounts in Ubuntu
In Ubuntu and other Linux systems, user accounts are fundamental to system security and access control. Each user represents a unique identity with specific permissions and resources.
graph TD
A[User Types] --> B[Regular Users]
A --> C[System Users]
A --> D[Root User]
User Types in Linux
User Type |
Description |
Typical Characteristics |
Regular Users |
Standard account for daily operations |
Limited system permissions |
System Users |
Service-specific accounts |
No login shell, automated tasks |
Root User |
Administrative account |
Full system control, highest privileges |
Creating User Accounts
To create a new user in Ubuntu, use the adduser
command:
## Create a new user
sudo adduser username
## Example with specific details
sudo adduser johndoe
This command interactively creates a user account, setting up home directory and initial password.
Linux stores user information in critical system files:
## View user details
cat /etc/passwd
## Check current logged-in users
who
## Display current user
whoami
These commands provide insights into user accounts and current system sessions, essential for ubuntu user management and system administration.