investigation of a system turns up a file

Your investigation of a system turns up a file that contains the line below:
find /home -iname .rhosts -exec rm -f {} ;
What is the purpose of this script?

Your investigation of a system turns up a file that contains the line below:
find /home -iname .rhosts -exec rm -f {} ;
What is the purpose of this script?

A.
To enhance system security

B.
To remove all program error dumps

C.
To remove all temporary files in the user’s home directories

D.
To reset the configuration for the rsh and rexec utilities

Explanation/Reference:
.rhosts is used to control which machines trust other machines for access to your account. If a machine trusts another machines then it will allow a specified user (usually yourself) to access your account without having to enter a password.

From the man pages:
-iname pattern   Like -name, but the match is case insensitive.
-exec command {} ;    Execute command; All following arguments to find are taken to be arguments to the command until an argument consisting of `;’ is encountered. The command line is built by appending each selected file name at the end.



Leave a Reply 0

Your email address will not be published. Required fields are marked *