Guest User

Untitled

a guest
May 12th, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.78 KB | None | 0 0
  1. [root@HOME ~]# mount -t cifs -v //NAS_SERVER/public/ /mnt/ -o username=user,password=pass
  2. mount.cifs kernel mount options: ip=184.106.31.190,unc=\NAS_SERVERpublic,,ver=1,user=user,pass=********
  3. mount error(115): Operation now in progress
  4. Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
  5. [root@HOME ~]# mount -t cifs -v //NAS_SERVER/public/ /mnt/ -o username=user,password=pass,ip=192.168.1.77
  6. ip address 192.168.1.77 override specified
  7. mount.cifs kernel mount options: ip=192.168.1.77,unc=\NAS_SERVERpublic,,ver=1,user=user,pass=********
  8. Retrying with upper case share name
  9. mount.cifs kernel mount options: ip=192.168.1.77,unc=\NAS_SERVERPUBLIC,,ver=1,user=user,pass=********
  10. mount error(6): No such device or address
  11. Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
  12.  
  13. [root@HOME ~]# smbclient -L 192.168.1.77
  14. WARNING: The security=share option is deprecated
  15. Enter user's password:
  16. Domain=[HOME] OS=[Unix] Server=[Samba 3.0.22]
  17.  
  18. Sharename Type Comment
  19. --------- ---- -------
  20. IPC$ IPC IPC Service (Network Storage)
  21. DISK 1 Disk
  22. PUBLIC Disk
  23. ADMIN$ IPC IPC Service (Network Storage)
  24. Domain=[HOME] OS=[Unix] Server=[Samba 3.0.22]
  25.  
  26. Server Comment
  27. --------- -------
  28. HOME Samba Server Version 3.6.5-85.fc16
  29. NAS_SERVER Network Storage
  30.  
  31. Workgroup Master
  32. --------- -------
  33. HOME HOME
  34.  
  35. mount error(115): Operation now in progress
  36. Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
  37.  
  38. el@defiant /mnt $ ping 192.168.13.107
  39. PING 192.168.13.107 (192.168.13.107) 56(84) bytes of data.
  40. 64 bytes from 192.168.13.107: icmp_req=1 ttl=128 time=0.366 ms
  41. --- 192.168.13.107 ping statistics ---
  42. 44 packets transmitted, 44 received, 0% packet loss, time 42999ms
  43. rtt min/avg/max/mdev = 0.178/0.227/0.366/0.038 ms
  44.  
  45. [root@defiant mnt]# mount -t cifs //192.168.13.107/eric /mnt/windows -o username=eric
  46. Password for eric@//192.168.13.107/public: **********
  47. [root@defiant mnt]#
  48.  
  49. [root@defiant windows]# ls
  50. testing.txt
  51. [root@defiant windows]#
  52.  
  53. mount -t cifs -v //NAS_SERVER/public/ /mnt/ -o username=user,password=pass,sec=ntlm
  54.  
  55. # mount -t cifs //192.168.0.2/media/ /mnt/cifs/media -o username=user,password=pass
  56. mount: mounting //192.168.0.2/media/ on /mnt/cifs/media failed: No such device or address
  57. #
  58.  
  59. # mount -t cifs //192.168.0.2/media /mnt/cifs/media -o username=user,password=pass
  60. #
  61.  
  62. username = foobar
  63. password = secret
  64.  
  65. username=foobar
  66. password=secret
  67.  
  68. mount -t cifs //remote /mnt/local -o credentials=/path/to/cifs.credo
  69.  
  70. username=me
  71. password=mypassword
  72. domain=mydomain
  73.  
  74. ...
  75. domain=mydomain
  76. <empty line>
  77.  
  78. ~> mkdir /mnt/local
  79. ~> sudo mount -t cifs //remote /mnt/local
  80. ~> ln -s /mnt/local/path/to/my-folder /mnt/my-folder
Add Comment
Please, Sign In to add comment