Friday, 20 December 2013

How to create a user in the Red Hat linux

Hello friends  today i m trying to exaplain a little topic how to add user and how to modify the user account
and some other things cover in this tut.

Ram-Ram to all bhai log

Lets start

User :- User is a person who use the machine that is called user.

Group :- More than one users are combined to have same access on the system or machine.

Defaults  Files for users  
   Files                                                           Description
1 #/etc/login.defs                                 Scripts contain defaults of user

2 # /etc/default/useradd                      Script contain default of useradd command

3 # /etc/passwd                                    Script contain user information

4 # /etc/group                                       Script contain group information

5 # /etc/shadow                                     Script contain user password in encrypted form


User Defaults 
1 UID :-  UID is stands for user id 1-499 is reserve for the root for system 500-6000 local users by defaults they are 500-6000 for system but we are able to customized those.

2GID :- GID stands for Group user id  .In the linux red hat the group id or group is created when we are create the user but we are customized it as well as UID.

3 /Home :-  When we are create the the user by defaults machine provide us a home directory


4 Mail Directory :-  when we are create the user then the system provide us a mail directory as well as home directory place /var/spool/mail/user1 mail directory is created with the same name of the user.


Your user name is automatically insert in the passwd ,groups or shadow files.

How to add user 
 1  We are using the useradd command to add user in the Red hat linux.
    syntax :- useradd <user name>
  In the userName is the name which you want to add user

Thats all bro

Thanks for reading and sorry for the R.I.P english

_/\_ Jai hind
   

0 comments:

Post a Comment