Day 5 :- Advanced Linux Shell Scripting with user 
                       management.

Photo by Lukas on Unsplash

Day 5 :- Advanced Linux Shell Scripting with user management.

Content

  1. Shell script for creating custom directories.

  2. shell script for taking backup of the files.

  3. About user management in linux.

Shell script for creating custom directories :

This shell script is written for creating a custom directories inside a root directory.

shell script for taking backup of the files :-

This shell script is written for taking backup of files and storing that files in an another folder. this is a day-to-day task of a devOps engineer.

About user management in linux :-

User management in Linux is a fundamental aspect of system administration, involving the creation, modification, and deletion of user accounts, as well as the management of permissions and access rights. The process typically starts with the useradd command to add a new user to the system, followed by setting a password for the user using passwd. When a user account is no longer needed, it can be removed using userdel. The usermod command allows for modifications to user account properties such as the username, home directory, or shell. Understanding group membership is also important, with commands like groups and usergroups used to list the groups a user belongs to. File and directory ownership and permissions are managed with chown and chmod, respectively. Users can switch to another account using su, while sudo grants limited superuser privileges. The visudo command edits the sudoers file, controlling who can execute commands with sudo. Additionally, system files like /etc/passwd, /etc/group, and /etc/shadow store essential user and group information. Effective user management is critical for system security and resource allocation, ensuring that users have appropriate access while maintaining system integrity.