Linux Introduction
VI-EDITOR
Process Management
Linux Installation
Disk Partitions & File System Management
Logical Volume Management - LVM
User & Group Administration
Package Management
Network File System - NFS
Domain Naming System - DNS
Apache HTTP Web Server
KickStart Installations
FTP server
BOOT PROCESS
Dynamic Host Configuration Protocol - DHCP
Job Scheduling
File Links
Swap Management
Log Management
Performance Management
Linux Troubleshooting
Linux Summary
116 Followers
What is User?
In Linux, User is the one who uses the system to perform any tasks. Linux has three type of users to access the system.
TYPE | EXAMPLE | USER ID (UID) | GROUP ID | HOME | SHELL |
|
|
| (GID) | DIRECTORY |
|
Super User | Root | 0 | 0 | /root | /bin/bash |
|
|
|
|
|
|
System User | ftp, ssh, | 1 to 499 | 1 to 499 | /var/ftp, etc... | /sbin/nologin |
| apache |
|
|
|
|
| Nobody etc… |
|
|
|
|
Normal User | edwiki | 500 to 60000 | 500 to 60000 | /home/username | /bin/bash |
| test etc... |
|
|
|
|
|
|
|
|
|
|
Users Attributes:
Whenever a user is created in Linux things created by default:-
Linux uses UPG (User Private Group) scheme
What is Group?
Linux supports creating Group which logically grouping multiple users. Every user must be part of at least one group called as Primary Group.
Linux has two type of Groups:
Groups are useful to manage file or directory permissions effectivey as it allows to grant the permission to set of users who are part of the same Group.
Primary Group:
Every user is part of at least one group as Primary Group. When user creats file or directory then the default group of file or directory is the primary group of the owner.
Secondary Group
Its possible to create groups and assign users to the group. Secondary groups are more useful to grant additional permissions to the user to access files and directories of the same group.
How to see File Properties (Owner, Group, Permissions)
Edwiki#ls -l f1
-rw-r--r-- 1 root root 0 Aug 7 11:36 f1
Edwiki#
How to create user:
How to create group:
How to add users to the group
How to change group of file or directory
How to see user groups
How to delete user
How to delete group