SHARE
TWEET

Untitled

a guest Sep 13th, 2017 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. *[root@sftp01 ~]# mount -vt cifs -o username=foo,password=password //samba01.test.lan/home/foo/smbshare /mnt/foo
  2. mount.cifs kernel mount options: ip=192.168.10.105,unc=\samba01.test.lanhome,,ver=1,user=foo,prefixpath=foo/smbshare,pass=********
  3. Retrying with upper case share name
  4. mount.cifs kernel mount options: ip=192.168.10.105,unc=\SAMBA01.TEST.LANHOME,,ver=1,user=foo,prefixpath=FOO/SMBSHARE,pass=********
  5. mount error(6): No such device or address
  6. Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)*
  7.    
  8. [root@samba01 ~]# hostname -f ;hostname -I ;cat /etc/centos-release
  9. samba01.test.lan
  10. 192.168.10.105
  11. CentOS release 6.9 (Final)
  12. [root@samba01 ~]# iptables -L -n ;sestatus
  13. Chain INPUT (policy ACCEPT)
  14. target     prot opt source               destination        
  15.  
  16. Chain FORWARD (policy ACCEPT)
  17. target     prot opt source               destination        
  18.  
  19. Chain OUTPUT (policy ACCEPT)
  20. target     prot opt source               destination        
  21. SELinux status:                 disabled
  22. [root@samba01 ~]# ps -ef |egrep "smbd|nmbd"
  23. root       469     1  0 11:44 ?        00:00:00 nmbd -D
  24. root       481     1  0 11:44 ?        00:00:00 smbd -D
  25. root       485   481  0 11:44 ?        00:00:00 smbd -D
  26. root       548   481  0 11:59 ?        00:00:00 smbd -D
  27. root       582   500  0 12:04 ?        00:00:00 egrep smbd|nmbd
  28. [root@samba01 ~]# smbclient -L //samba01.test.lan -U foo
  29. Enter foo's password:
  30. Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.6.23-44.el6_9]
  31.  
  32.         Sharename       Type      Comment
  33.         ---------       ----      -------
  34.         foo             Disk      
  35.         IPC$            IPC       IPC Service (Samba Server Version 3.6.23-44.el6_9)
  36. Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.6.23-44.el6_9]
  37.  
  38.         Server               Comment
  39.         ---------            -------
  40.         SAMBA01              Samba Server Version 3.6.23-44.el6_9
  41.  
  42.         Workgroup            Master
  43.         ---------            -------
  44.         MYGROUP              SAMBA01
  45. [root@samba01 ~]# testparm
  46. Load smb config files from /etc/samba/smb.conf
  47. Processing section "[homes]"
  48. Processing section "[printers]"
  49. Processing section "[foo]"
  50. Loaded services file OK.
  51. Server role: ROLE_STANDALONE
  52. Press enter to see a dump of your service definitions
  53.  
  54. [global]
  55.         workgroup = MYGROUP
  56.         server string = Samba Server Version %v
  57.         log file = /var/log/samba/log.%m
  58.         max log size = 50
  59.         client signing = required
  60.         idmap config * : backend = tdb
  61.         cups options = raw
  62.  
  63. [homes]
  64.         comment = Home Directories
  65.         browseable = No
  66.  
  67. [printers]
  68.         comment = All Printers
  69.         path = /var/spool/samba
  70.         printable = Yes
  71.         print ok = Yes
  72.         browseable = No
  73.  
  74. [foo]
  75.         path = /home/foo/smbshare
  76.         valid users = foo
  77.         read only = No
  78. [root@samba01 ~]# ls -al /home/foo/
  79. total 28
  80. drwx------ 3 foo  foo  4096 Sep 12 10:09 .
  81. drwxr-xr-x 4 root root 4096 Sep 13 11:30 ..
  82. -rw------- 1 foo  foo    50 Sep 12 10:38 .bash_history
  83. -rw-r--r-- 1 foo  foo    18 Mar 22 19:15 .bash_logout
  84. -rw-r--r-- 1 foo  foo   176 Mar 22 19:15 .bash_profile
  85. -rw-r--r-- 1 foo  foo   124 Mar 22 19:15 .bashrc
  86. drwxrwxr-x 2 foo  foo  4096 Sep 13 12:20 smbshare
  87.    
  88. [root@sftp01 ~]# hostname -f ;hostname -I ;cat /etc/centos-release ;rpm -qa |grep cifs
  89. sftp01.test.lan
  90. 192.168.10.104
  91. CentOS release 6.9 (Final)
  92. cifs-utils-4.8.1-20.el6.x86_64
  93. [root@sftp01 ~]# iptables -L -n ;sestatus
  94. Chain INPUT (policy ACCEPT)
  95. target     prot opt source               destination        
  96.  
  97. Chain FORWARD (policy ACCEPT)
  98. target     prot opt source               destination        
  99.  
  100. Chain OUTPUT (policy ACCEPT)
  101. target     prot opt source               destination        
  102. SELinux status:                 disabled
  103. [root@sftp01 ~]# smbclient -L //samba01.test.lan -U foo
  104. Enter foo's password:
  105. Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.6.23-44.el6_9]
  106.  
  107.         Sharename       Type      Comment
  108.         ---------       ----      -------
  109.         foo             Disk      
  110.         IPC$            IPC       IPC Service (Samba Server Version 3.6.23-44.el6_9)
  111. Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.6.23-44.el6_9]
  112.  
  113.         Server               Comment
  114.         ---------            -------
  115.         SAMBA01              Samba Server Version 3.6.23-44.el6_9
  116.  
  117.         Workgroup            Master
  118.         ---------            -------
  119.         MYGROUP              SAMBA01
  120. [root@sftp01 ~]# ls -al /mnt/
  121. total 12
  122. drwxr-xr-x  3 root root 4096 Sep 13 12:26 .
  123. drwxr-xr-x 25 root root 4096 Sep 13 09:03 ..
  124. drwxr-xr-x  2 root root 4096 Sep 12 10:05 foo
  125.    
  126. unc=\samba01.test.lanhome,,ver=1,user=foo,prefixpath=foo/smbshare
RAW Paste Data
Top