Advertisement
Guest User

Untitled

a guest
Dec 12th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. path="/home/folder_2/b.exe"
  4. mkdir ~/folder_2
  5. mkdir ~/folder_1
  6. cd folder_2
  7. touch a.out
  8. touch b.exe
  9. touch c.html
  10. touch d.xhtml
  11. touch e.htm
  12. touch html.xml
  13. touch f.htmlhtm
  14. cd ~/folder_1
  15. touch a1b
  16. touch a2b
  17. touch a3b
  18. touch .a4b
  19. ln -s a5b $path
  20. ls -l a5b
  21. chmod 444 a1b
  22. chmod 652 .a4b
  23. chmod 510 b.exe
  24. chmod 755 c.html
  25. chmod 357 html.xml
  26.  
  27. chmod u+x .a4b
  28. chmod g+r .a4b
  29. chmod o-r .a4b
  30.  
  31. chmod u-w b.exe
  32. chmod u+x b.exe
  33. chmod g+x b.exe
  34. chmod o-r b.exe
  35. chmod o+x b.exe
  36.  
  37. chmod o-w html.xml
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement