You are on page 1of 3

Linux System Administration

Practical #3

Name Kinjal Koli Roll Number 21302A0004


Class TYIT Division C
Linux System
Subject/Course Date 25-07-2023
Administration
Topic Working with Users, Groups, and Permissions

1. Working with Users

a) Create a user named “testuser”. Check if user has been created.

b) Create user “John” and set an expiry for this user.

c) Create a user “Paul” using unencrypted password.

d) Create a user “Nitin”, also add a comment at the time of creation.

2. Working with Group

a. Create a groups “testgroup” and “LA”. Check if the group has been added.
b. Change the name of group “testgroup” to “newgroup”.
c. Delete group “newgroup”.

Vidyalankar School of Information Technology


3. Passwords, Modifying and deleting users
a. Change password for user “testuser”.
b. Change the groupname of the user “testuser” to “LA”.
c. Change the expiry date of the user “testuser”.
d. Delete user “John” without deleting its home directory.
e. Delete user “Paul” along with its home directory.

4. File Permissions

a. Create a file “File1” using touch command.


b. Provide read, write, execute permissions to the file owner.
c. Remove write permissions for the group and others.
Vidyalankar School of Information Technology
d. Provide read and write permission for owner and read – only for group and others.
e. Change ownership of “File1” to user “Nitin”.
f. Change groupname of “File1” to group “LA”.

Vidyalankar School of Information Technology

You might also like