LPI
117-201 · Question #181
What does the following script do? #!/bin/bash find / -perm +4000 | mail -s "Daily find output" root
The correct answer is D. Emails a report of all suid files to root. See the full explanation below for the reasoning.
Question
What does the following script do? #!/bin/bash find / -perm +4000 | mail -s "Daily find output" root
Options
- AEmails a report of all guid files to root
- BEmails a report of all important files to root
- CEmails a report of all writeable files to root
- DEmails a report of all suid files to root
- ECorrects permissions on files and emails the result to root
How the community answered
(37 responses)- B11% (4)
- C3% (1)
- D81% (30)
- E5% (2)
Community Discussion
No community discussion yet for this question.