» Linux » Examen sur Linux » Examen 201 : Advanced Administration » Section 5 » Question 23/23
23.The following shell script is run by cron on a regular basis:
x=$(find /home -name .rhost 2>/dev/null)
for i in $x; do
$(echo $I | cut -d/ -f3);z="$z $y"
rm $I;done
echo "Notice: $z" | mail root@example.com
Which best defines the action of this script?

Verify the existence of users' .rhost files and removes the user.
Remove all .rhosts files and notify each user of your action.
Find all misplaced rhost files and remove them.
This script checks for the existence of .rhost files, deletes them and reports the offending user names to root.
Notify the root user of all .rhost files.


« Question 22