You are on page 1of 5

12110769

CHARAN LALAM

TASK 2 (SYSTEM ADMINISTRATION)


Adding users

Checking user whether created or not


Creating groups

Checking whether groups are added or not


Adding every user to respective groups also adding hr to marketing and development groups

Removing the user alice from marketing group


Deleting user alice and checking whether deleted or not

Changing the password of bob user

ASSIGNMENT QUESTIONS

1) How did you create user accounts in linux ? explain the commands used and their
significance.

Ans) Using the command useradd -m <user name> can create an user but the
password can not be set at the time of creating user and it is easy for the system administrator
to create users quickly later the respective user can create the password for their accounts

Here -m creates home directory


2) describe the process of creating groups in linux provide examples of commands used and
explain their functionalities.

Ans) The command sudo usermod -G <group name> <username> can


create a group

Also to add a single user to multiple groups we can use this command
sudo usermod -aG group1,group2,group3 username

3) What are the benefits of organising users into groups ? how does the group membership
effect file permissions and access control?

Ans) Grouping users simplifies management, boosts security, and helps share resources
effectively. Group membership decides who can access files and folders by allowing admins
to set permissions based on the group a user belongs to, ensuring controlled access for group
members.

You might also like