LPI
201-400 · 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
(56 responses)- A7% (4)
- B16% (9)
- C2% (1)
- D71% (40)
- E4% (2)
Community Discussion
No community discussion yet for this question.