TEXT   18

perl program

Guest on 22nd September 2022 01:09:01 PM

  1. Perl Program
  2.  
  3. Your job is to write a program that looks for files with incorrect permissions. In particular, I want to know any file that is writeable by normal users in any of the following directories.
  4.  
  5. /usr/bin
  6. /bin
  7. /sbin
  8. /etc
  9. /var
  10. /usr/local
  11.  
  12. Just print the name of the file, along with a warning message
  13. WARNING: /usr/bin/ls is writeable by non-system people.
  14. WARNING: /bin/bash is writeable by non-system people.

Raw Paste


Login or Register to edit or fork this paste. It's free.