Advertisement
Al0rse

Outputs permissions

Jul 15th, 2016
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.50 KB | None | 0 0
  1. [ec2-user@ip-172-31-21-122 html]$ ls -al /usr/share/nginx
  2. total 12
  3. drwxr-xr-x 3 root root 4096 Jun 13 22:44 .
  4. drwxr-xr-x 93 root root 4096 Jul 12 22:58 ..
  5. drwxr-sr-x 5 viUser-ftp www 4096 Jul 15 16:34 html
  6.  
  7.  
  8. [ec2-user@ip-172-31-21-122 html]$ ls -al /usr/share/nginx/html
  9. total 40
  10. drwxr-sr-x 5 viUser-ftp www 4096 Jul 15 16:34 .
  11. drwxr-xr-x 3 root root 4096 Jun 13 22:44 ..
  12. -rw-rwSr-- 1 viUser-ftp www 3696 Jun 13 22:43 404.html
  13. -rw-rwSr-- 1 viUser-ftp www 3738 Jun 13 22:43 50x.html
  14. -rw-rwSr-- 1 viUser-ftp www 3770 Jun 13 22:43 index.html
  15. -rw-rwSr-- 1 viUser-ftp www 17 Jun 2 23:40 info.php
  16. -rw-rwSr-- 1 viUser-ftp www 368 Jun 13 22:43 nginx-logo.png
  17. lrwxrwxrwx 1 viUser-ftp www 32 Jun 24 21:53 poweredby.png -> /usr/share/pixmaps/poweredby.png
  18. drwxr-sr-x 2 viUser-ftp ec2-user 4096 Jul 15 16:56 prueba
  19. drwxrwsr-x 7 viUser-ftp www 4096 Jul 15 16:05 sites
  20. drwxrwsr-x 2 viUser-ftp www 4096 Jun 14 22:38 sslviventoura.de
  21.  
  22.  
  23. [ec2-user@ip-172-31-21-122 html]$ cat /etc/passwd
  24. root:x:0:0:root:/root:/bin/bash
  25. bin:x:1:1:bin:/bin:/sbin/nologin
  26. daemon:x:2:2:daemon:/sbin:/sbin/nologin
  27. adm:x:3:4:adm:/var/adm:/sbin/nologin
  28. lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
  29. sync:x:5:0:sync:/sbin:/bin/sync
  30. shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
  31. halt:x:7:0:halt:/sbin:/sbin/halt
  32. mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
  33. uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin
  34. operator:x:11:0:operator:/root:/sbin/nologin
  35. games:x:12:100:games:/usr/games:/sbin/nologin
  36. gopher:x:13:30:gopher:/var/gopher:/sbin/nologin
  37. ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
  38. nobody:x:99:99:Nobody:/:/sbin/nologin
  39. rpc:x:32:32:Rpcbind Daemon:/var/cache/rpcbind:/sbin/nologin
  40. ntp:x:38:38::/etc/ntp:/sbin/nologin
  41. saslauth:x:499:76:"Saslauthd user":/var/empty/saslauth:/sbin/nologin
  42. mailnull:x:47:47::/var/spool/mqueue:/sbin/nologin
  43. smmsp:x:51:51::/var/spool/mqueue:/sbin/nologin
  44. rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/nologin
  45. nfsnobody:x:65534:65534:Anonymous NFS User:/var/lib/nfs:/sbin/nologin
  46. sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
  47. dbus:x:81:81:System message bus:/:/sbin/nologin
  48. ec2-user:x:500:500:EC2 Default User:/home/ec2-user:/bin/bash
  49. nginx:x:498:497:Nginx web server:/var/lib/nginx:/sbin/nologin
  50. apache:x:48:48:Apache:/var/www:/sbin/nologin
  51. memcached:x:497:496:Memcached daemon:/var/run/memcached:/sbin/nologin
  52. mysql:x:27:27:MySQL Server:/var/lib/mysql:/bin/bash
  53. viUser-ftp:x:501:501::/usr/share/nginx/html/:/bin/bash
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement