---
# System prepended metadata

title: L2. Users & Permissions. Exercises

---

# L2. Users & Permissions. Exercises

## 1. Operators
#### 1. Execute Wireshark using CLI with the proper operator, to maintain the ability to continue working in the same terminal “tab”
#### 2. Execute both “ping” (insert an IP address with an incorrect formation) and “route” command in one line, and make the “route” command work only when ping fails
#### 3. Execute both “ping” and “route” in one line, and make them work independently
#### 4. Use the proper operator with the “cat” command, to display the first and last 5 lines of the “passwd” file
#### 5. Use the proper operators to display the two first lines, and the domain name of the “hosts” file

---

## 2. User Management
#### 1. List all the existing users with the proper operator to display only the names
#### 2. Create a new user with your personal name and personal details
#### 3. Using root user, find out which groups the new user in a member of
#### 4. Change the password of the newly created user
#### 5. Create a new group named “newUser”, and assign to it the newly created user

---

## 3. Permissions
#### 1. Add the newly created user to the “sudo” group
#### 2. Create a file and check its permissions
#### 3. Change the file permissions to enable “execute” to the owner only
#### 4. Change the file permissions to allow “other” users to read and write
#### 5. Change the ownership of the file to “other” users


---
