Linux

Operating system manages computer hardware and software for the user.


Introduction to Linux:


1) Linux is free, open source operating system.


2) Linux is fast, fully functional, multiuser and multitasking operating system.
It perform several tasks at the same time


3)Linux supports HTTP, FTP, and DNS and SMTP servers.


4)Linux comes with third party applications like open office, multimedia, GUI desktop etc.


User Management in Linux


1)Adding Users:
  The /etc/login.defs file contains default values for creating a new user account.
syntax:
#useradd [options] username
#passwd username


example:
#useradd amol                       // adds new user amol
#passwd amol                       // prompted to enter new password of amol


2)Removing Users


userdel:
The userdel command used to remove a user from the system.
syntax:
# userdel [options] username


example:
# userdel -r amol
-r : the user's (amol) home directory is also removed.


Group management:


Groups are created for users having common interest( same privileges/rights). eg. student group.
The /etc/group is related to groups.
syntax:
Create a group:
#groupadd group_name
example:
#groupadd MCM


Delete a group:
syntax:
#groupdel group_name
example:
#groupdel mcm


Rename a Group:
syntax:
#groupmod -n newname oldname
example:
#groupmod -n ITMCM MCM


#su –switch user
command is used to change current user.
syntax:
#su user_name
it may prompt you to enter password
example:
#su root
Have a Question ? Need Help in College Assignments, Need Code that is not available here? Just leave a comment & get your code instantly.

Tips to Enhance Your Blog