Posts Tagged ‘skel’

What Linux Admin should know : User Management

Written by sathish. Posted in Linux

Users are someone those who have given permission to access the server and enjoy the resources of the server. They can connect to the server via ssh and  they can create, modify and delete the files and directories. Users can run the application provided that they has permission to do that. To manage the users in easy manner, we generally put them into groups.

For example, 25 students are from std 9 and just say ‘vinay’ is one among them. To assemble all the student from std 9. we will not call one by one student to assemble, simply we use std 9 students are requested to assemble. Here vinay is the user and std 9 is group name.

This post will explain various way of creating and managing the users and groups.

1. To List the users :

cat /etc/passwd
Output:
sathish:x:1000:1000:call:/home/sathish:/bin/bash

Syntax:

user-name:x:user id:group id:Comment Section:home directory:default shell
2. To List the groups
cat /etc/group
Output:
sathish:x:1000:
sambashare:x:124:sathish,sameer
Syntax:
group-name: password : group id: users list
Techlister© - 2012