logo

Server Administration and Management with Shell Scripts and ZFS Volume

   

Added on  2023-06-07

13 Pages695 Words492 Views

Table of Contents
1. Automated Account Management......................................................................................2
2. Designing File Systems......................................................................................................5
3. Implementing the File system.............................................................................................7
4. File System Management with Scripts.............................................................................10
1

1. Automated Account Management
This task we are going to make the two shell scripts and it is used to manage the user
information. First scripts is to reads the text file called users.txt that contains the below
information.
Shell Script
#!/bin/bash
FILE="/home/ubuntu/Documents"
echo "*** File - $FILE contents ***"
cat $FILE
After run the shell scripts and it is provide the output. It is displayed below,
2

After, we will assume the users on the system without any interactive input. It is shown
below.
The Second script is to remove the user account by using the following script.
#!/bin/bash
#
for user
do
userdel r $user
done
#
for user1
do
rm -rM /home/$user1
done
#
The output is shown below.
3

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Linux Server Administration: Automatic Management of Account, File System Designing, Implementation, Making the File System accessible and robust, Management of File System using the Scripts
|11
|695
|90

LINUX Server Administration: Automated Account Management, Designing File Systems, File System Management with Scripts
|11
|530
|287

Automated Account Management, Designing and Implementing File Systems in Linux
|11
|647
|305

Linux File System: Automated Account Management, Designing File Systems, File System Management with Scripts
|12
|721
|455

Linux File System Management with Scripts
|16
|1536
|421

Developing Simple Scripts for File and User System Management with ZFS Volume
|18
|2359
|76