Skip to main content

User administration and Group administration in Linux

 User Administration in Linux

Syntax: useradd <username>

Configuration File: /etc/passwd


User Administration with customization

Syntax: useradd <option> <argument> <username>


Options:

u - UID

g - GID

c - Comment

d - home directory

b - base directory

-e account expiry 

-o non unique

-G make member of secondary group

-r system user

-s user login shell


User modification 

Syntax: usermod <option> <argument> <username>


Options:

u - UID

g - GID

c - Comment

d - home directory

b - base directory

-e account expiry 

-o non unique

-G make member of secondary group

-r system user

-s user login shell


User password management

Syntax: passwd <username>

             chpasswd

Configuration file: /etc/shadow

 

Group Administration

Syntax: groupadd <groupname>

Configuration file: /etc/groups


User account delete and group delete

Syntax: userdel  -r  <username>

Syntax: groupdel  -r  <groupname>

Comments

Popular posts from this blog

Booting Process in Linux

  What is booting process? Basically how system starts and we get GUI is called as booting process. 1.BIOS/UEFS BIOS is a Basic input and output system. UEFS is a unified extensible firmware.  2. Master Boot Loader It has the total size of 512 kb.     446 kb for boot loader     64  kb for partition table     2 kb for future reserved 3. Boot Loaders Boot loader in RHEL8 and RHEL9 is grub2. It has location of kernal. GRUB2 is stand for Grand Unified Boot Loader. 4.Kernal   Kernal loads in system and take command of systems. 5.Systemd This is the first process of linux system. 6.Targets Simply target means user console(GUI/CLI)  

Yum command and its examples

  What is yum utility in linux? yum is a open source package manager for linux os and its allows automatically update and dependency management. yum stands for yellow dog update and modifier. Syntax: yum <option> <package name> Options: install - to install single or multiple packages groupinstall - install group of packages update - update single or multiple packages remove - uninstall package info - display detail info about package list - list install packages clear - clear cache repolist - display list of all repositories

Hostname and IP configuration in linux

  How to set hostname in linux? Syntax: # hostnamectl set-hostname <hostname>                # echo <hostname>  > /etc/hostname How to check and  assing IP to server in linux? To check IP of system # ip a # ip addr show Through Graphical Console # nmtui  Through CLI # nmcli If command not found then try to install package  NetworkManager and NetworkManager-tui IP allocation using ifconfig utility