Advertisement
Guest User

Untitled

a guest
Jul 24th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. $ sudo mkdir /usr/local/bar
  2. $ sudo touch /usr/local/bar/foo
  3. $ ls -l /usr/local
  4. total 11M
  5. drwxr--r-- 2 root root 4,0K jul 24 23:56 bar/
  6. [...]
  7. $ ls -l /usr/local/bar/
  8. ls: cannot access '/usr/local/bar/foo': Permission denied
  9. total 0
  10. -????????? ? ? ? ? ? foo
  11. $ sudo ls -l /usr/local/bar/
  12. total 0
  13. -rw-r--r-- 1 root root 0 jul 24 23:56 foo
  14.  
  15. Defaults env_reset
  16. Defaults mail_badpass
  17. Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
  18.  
  19. root ALL=(ALL:ALL) ALL
  20.  
  21. %admin ALL=(ALL) ALL
  22.  
  23. %sudo ALL=(ALL:ALL) ALL
  24.  
  25. #includedir /etc/sudoers.d
  26.  
  27. myusername ALL=NOPASSWD: ALL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement