welcome to the video tutorial on UNIX
administration as Linux is a multi-user
operating system there is a high need of
an administrator who can manage user
accounts their rights and the overall
system security you should know the
basics of Linux admin so that you can
handle the user accounts and user groups
in Linux every user is assigned an
individual account which contain all the
files information and data of the user
you can create multiple users in a Linux
operating system so let us learn the
different ways to do so right now we
only have one account under this Linux
operating system now we'll go ahead and
add some more accounts to it let's start
with terminal now in order to add a new
user account using terminal you need to
type in this command it would be sudo
space add user space the new user name
that you would like to add once you
enter the terminal would ask you to
enter the password for the new account
let us enter the password it will then
ask to retype the new UNIX password once
done it will ask you for the full name
of the user we will use SAP space 99 in
our case now it says room number let us
put in 101 the work phone you can put in
any number of your choice put in the
home contact number then other you can
leave it if you want press the Y key on
the keyboard
if the ever given information is correct
and hit enter once you see the command
prompt on the terminal it means that the
user account has been created so let us
check it on the system in order to check
the user accounts present Orion system
you need to go to system settings then
you need to click on user accounts and
you would be able to see all the
accounts present on
computer so now here it shows your
nine-nine as the administrator and SAP
99 as the standard user the other way to
create a user account is by using the
GUI in order to do so you need to click
the unlock button here and then put in
the password to authenticate once
authenticated you need to then click on
the plus sign here to create a new user
now as you can see a new window has
popped up here and it would ask us to
fill in the information for the new
account the account type offers two
choices standard and administrator if
you want the new user to have
administrative access to the computer
select administrator as the account type
administrators can do things like add
and delete users install software and
drivers and change the data and time
otherwise choose standard let us now go
ahead and fill in the full name as Java
99 if you want the username to be
different as your full name you can do
that too so let us put in Java 1 0 0
here and click on create the new account
would show but it would be disabled by
default to activate it click the
password option and add a new password
then retype the same password and click
on change this way the new account would
be enabled let us now learn how to
delete or disable an account so let's
say we want to remove the SAP 99 user
account from the system in order to do
so using the terminal we need to first
remove the password information for the
account this is the command that we
would use to do so now let us run it on
the terminal on hitting Enter the
terminal would ask you for the password
on entering the password terminal would
say that the password expiry information
was changed now all you have to do is
delete the account and we will use this
command to do so so let us go ahead and
delete the user account sap 99
so if you check the user accounts window
you would see that the SAP 99 account
has been removed in order to do so using
the GUI you need to go to the user
accounts window again and click on the
unlock button again put in the password
for authentication and then highlight
the account that you want to delete
right now
we want to delete the Java 99 account
once highlighted you need to click on
the minus sign here which will delete
the selected user click on it and then
the system would ask whether you would
like to delete the temporary home
directory and Mail's Bui files or keep
them right now we do not need the files
so we'll click on delete once done you
would see that the Java 99 account has
been deleted now to add a user to a
group you need to use the following
syntax which says sudo space usermod
space - a space hyphen capital G then
the group name then the user name you
can view the existing groups on your
Linux operating system by entering the
following command
it says group mod then press the tab key
twice
now let us go ahead and add the user
group main to their user account guru
nine nine and two the password
authentication and the user group would
be added to your user account you can
check whether the user is in a group by
using the command cat space etz space
group and you would find that the user
account guru 99 has been added to the
user group mail for removing a user from
the user group you need to use the
following sentence it says sudo space
del user space the user name then the
group name so let us try it on terminal
now for removing the user account guru
9:9 from the user group mail we need to
type in sudo space then user space the
username which would be guru 99 then the
user group which was male and as you can
see here that the user guru 99 was
removed from the group mail successfully
if you do not want to run commands on
the terminal for managing users and
groups then you can install a GUI ad on
the command for the same as so let us go
ahead and install it on the system
once you had enter thumbnail would start
installing the GUI add-on and it would
ask you whether you would like to
continue the installation press Y and
hit enter this would install the GUI
add-on on the operating system once the
installation is complete you need to go
to dash and type in user then click on
users and groups here you would be able
to find out all the user accounts and
you can click on manage groups to manage
the groups that they are a part of
moving on to the finger command it is
used to procure information of the users
on a Linux machine you can use it on
both local and remote machines thus
index finger gives it out all the logged
users on the remote and local machine
thus index finger space the user name
specifies the information of a specific
user so let us quickly recap what we
have learnt in this tutorial you can use
both GUI or terminal for user
administration you can create disable
and remove user accounts you can add or
delete a user to a user group let us go
through the commands as well sudo space
adduser space the user name as a user
sudo space PA SS WD space - l space the
user name disables a user
pseudo userdel space - our username
delete sir user
sudo space usermod space - a space - G
in capital letter followed by group name
and then the username adds a user to a
group you need to use sudo space del
user space user than the group name to
remove a user from the user group the
finger command gives information on all
logged users the finger space username
gives information of a particular user
thank you for watching this tutorial I
would see you in the next one