logo

Automated Account Management, Designing and Implementing File Systems in Linux

   

Added on  2023-06-07

11 Pages647 Words305 Views
LINUX

Table of Contents
Automated Account Management..............................................................................................2
Designing File Systems..............................................................................................................5
Implementing the File system....................................................................................................6
Making the File System accessible and robust..........................................................................7
File System Management with Scripts.......................................................................................8
References................................................................................................................................10
1

Automated Account Management
Here, we will creates the two shell scripts which is used to manage the user
information. First shell script is used for reads the text file called users.txt that contains the
below information (Edwards, 2013).
Shell Script is shown below.
#!/bin/bash
FILE="/home/ubuntu/Documents"
echo "*** File - $FILE contents ***"
cat $FILE
Run the shell script by using the below steps.
Open terminal.
Go to script location by using the cd command.
After, gives the permission by enter the below command.
chmod +x user.sh
Finally, run the shell scripts by enter the following command.
./user.sh
It is shown below.
2

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

End of preview

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

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

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

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

Server Administration and Management with Shell Scripts and ZFS Volume
|13
|695
|492

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

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