Guest User

Untitled

a guest
May 4th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. sudo apt-get install cifs-utils
  2.  
  3. # /etc/nsswitch.conf
  4. #
  5. # Example configuration of GNU Name Service Switch functionality.
  6. # If you have the `glibc-doc-reference' and `info' packages installed, try:
  7. # `info libc "Name Service Switch"' for information about this file.
  8.  
  9. passwd: ******
  10. group: compat
  11. shadow: compat
  12. gshadow: files
  13.  
  14. hosts: files mdns4_minimal [NOTFOUND=return] wins dns
  15. networks: files
  16.  
  17. protocols: db files
  18. services: db files
  19. ethers: db files
  20. rpc: db files
  21.  
  22. netgroup: nis
  23.  
  24. sudo apt-get install libnss-winbind winbind
  25.  
  26. username=***
  27. password=***
  28.  
  29. # /etc/fstab: static file system information.
  30. #
  31. # Use 'blkid' to print the universally unique identifier for a
  32. # device; this may be used with UUID= as a more robust way to name devices
  33. # that works even if disks are added and removed. See fstab(5).
  34. #
  35. # <file system> <mount point> <type> <options> <dump> <pass>
  36. # / was on /dev/sda1 during installation
  37. UUID=5cf6df9a-462a-42bb-aa94-2b29475d6578 / ext4 errors=remount-ro 0 1
  38. # swap was on /dev/sda5 during installation
  39. UUID=f546dc20-4811-4f03-8296-fe9c9b549197 none swap sw 0 0
  40. ## Mount Windows (Z)
  41. //IP_ADDRESS /media/Z cifs credentials=/home/my_username/.smbcredentials,iocharset=utf8,gid=1000,uid=1000,file_mode=0777,dir_mode=0777 0 0
  42.  
  43. sudo mount -a
  44.  
  45. mount error(22): Invalid argument
  46. Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Add Comment
Please, Sign In to add comment