NETWORK. ASSIGN AND CONFIGURE USER PERMISSIONS.
🎯 PURPOSE OF THE PRACTICAL LESSON
Learn:
🔷 THEORY: WHAT IS A USER ACCOUNT?
📘 Definition: �A user account is a unique identifier that allows a user to log in to a system and access its resources in accordance with the assigned rights.
👤 Examples of accounts: �root , user1 , admin , guest
📊 Account types:
🔷 NETWORK RESOURCES AND ACCESS RIGHTS
📁 Network resource types:
🔐 Access rights levels:
📜 ACL — Access Control List:
✅ Linux ACL example: getfacl command
getfacl myfile.txt
Conclusion:
# file: myfile.txt
# owner: user1
# group: user1
user:: rw -
user:admin:r --
group::r--
mask::r--
other::---
➡️ Explanation:
🔷 BASIC LINUX COMMANDS FOR USER MANAGEMENTBASHCOPYEDIT
adduser student
student passwd
usermod - aG sudo student
📌 Explanation:
adduser student — creates a new user named student
passwd student — sets or changes the password for a user
usermod - aG sudo student — adds the user student to the sudo group ( gives administrator rights)
🔷 SETTING UP ACCESS RIGHTS IN LINUX
chmod 755 file.txt
chown student:student file.txt
📘 Explanation of commands:
Symbol | Meaning | Designation |
r | 4 | Reading |
w | 2 | Recording |
x | 1 | Execution |
Example: 7 = 4+2+1 = rwx , 5 = 4+0+1 = rx
👥 Owner and group:
🔷 USER GROUPS IN LINUX
📘 What is a group? �A user group is a way to group multiple accounts together to assign shared access rights to files, folders, and system resources.
🔧 Creating and setting up a group:
groupadd devteam # Create a devteam group
usermod - aG devteam student # Adding the user student to the devteam group
📊 Checking group membership:
student groups
Example output:
student : student devteam
➡️ This means that the user student is now part of the devteam group .
🔷 ACCESS LEVELS IN WINDOWS
🧭 Where to configure:
🔐 Local Security Policy:
🔷 PRACTICE TASK 1 (LINUX)
🎯 Goal: Create two users, one group and give limited access to the / srv / data folder .
🧑💻 Task conditions:
Users: alice , bob
Group: staff
Folder: / srv / data
Permissions: Only members of the staff group can read and write; others have no access.
📜 Command sequence:
# Creating users
sudo adduser Alice
sudo adduser bob
# Creating a group
sudo groupadd staff
# Adding users to a group
sudo usermod - aG staff Alice
sudo usermod - aG staff bob
# Create a folder
sudo mkdir -p / srv / data
# Assigning owner and group
sudo chown root:staff / srv / data
# Assigning access rights
sudo chmod 770 / srv / data
🔐 Explanation:
🔷 SOLUTION: SETTING UP USERS AND PERMISSIONS (LINUX)
adduser alice # Creates the user alice
adduser bob # Creates user bob
groupadd staff # Creates a new group staff
usermod - aG staff alice # Adds alice to the staff group
usermod -aG staff bob # Adds bob to the staff group
mkdir / srv /data # Creates the directory / srv /data
chown :staff / srv /data # Sets the group owner of the folder to the staff group
chmod 770 / srv /data # Permissions: Only owner and group can read, write, execute
📌 Explanations:
THANK YOU FOR YOUR ATTENTION.