Lab - Ganesh Ram
Lab - Ganesh Ram
CSTI3 2K22CSUNO1239
Lab task 1
1. Add new users (Sam and Mark) and groups (Sales and IT). Assign passwords to the new
users. Check the entries of the newly added users and groups in their respec ve files
(/etc/passwd and /etc/group).
Solu on:
Solu on:
Solu on:
group sam
4. Delete both the user account Sam and the Sales group.
Solu on:
Lab task 2 A
Solu on:
mkdir Data
touch Data/DT
touch Data/PT
2. You need to ensure that the owner of the Data folder should be root user Only.
Sol.
u on:
Lab task 2 B:
Solu on
Sudo mkdir
Solu on:
Solu on:
Lab task 3 A
1. Create four files simultaneously with the name – d, dd, ddd, dddd.
Solu on:
Solu on:
mkdir DevOPS
mv d dd DevOPS
3. Move the remaining two files into another folder called “TesƟng”.
Solu on:
mkdir Tes ng
Lab task 3 B
Solu on:
Sudo useradd smith
Solu on:
Solu on: