Advertisement
Guest User

Untitled

a guest
Jan 13th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. mkdir /mnt/docs
  2. chown www-data:www-data /mnt/docs
  3. ls -l /mnt
  4.  
  5. drwxr-xr-x 2 www-data www-data 4096 Jan 6 01:14 docs
  6. drwxr-xr-x 2 root root 4096 Dec 8 21:46 cdrom
  7.  
  8. mount -t cifs //192.168.1.10/Public/Documents/Docs -o username=****,password="****" /mnt/docs
  9. ls -l /mnt
  10.  
  11. drwxr-xr-x 2 root root 0 Jan 12 02:51 docs
  12. drwxr-xr-x 2 root root 4096 Dec 8 21:46 cdrom
  13.  
  14. chown -h www-data:www-data /mnt/docs
  15. ls -l /mnt
  16.  
  17. drwxr-xr-x 2 root root 0 Jan 12 02:51 docs
  18. drwxr-xr-x 2 root root 4096 Dec 8 21:46 cdrom
  19.  
  20. mount -t cifs
  21. -o username=****,password="****",uid=www-data
  22. //192.168.1.10/Public/Documents/Docs
  23. /mnt/docs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement