CentOS下Samba文件服务器的安装与配置(3)

                    Starting SMB services:                                           [  OK  ]

[root@samba /]# /etc/init.d/nmb restart

  Shutting down NMB services:                                [FAILED]

                    Starting NMB services:                                            [  OK  ]

              D、测试smb.conf配置是否正确:                   

                     [root@samba /]# testparm

显示结果:

Load smb config files from /etc/samba/smb.conf

                    rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)

                     Processing section "[homes]"

                    Processing section "[printers]"

                    Processing section "[public]"

                    WARNING: The security=share option is deprecated

                     Loaded services file OK.

                    Server role: ROLE_STANDALONE

                    Press enter to see a dump of your service definitions

                    [global]

                                  netbios name = LMZSAMBA

                                  server string = Lmz Samba Server Version %v

                                  security = SHARE

                                  log file = /var/log/samba/log.%m

                                  max log size = 50

                                  idmap config * : backend = tdb

                                 cups options = raw

                    [homes]

                                  comment = Home Directories

                                  read only = No

                                  browseable = No

                    [printers]

                                comment = All Printers

                                  path = /var/spool/samba

                                  printable = Yes

                                  print ok = Yes

                                  browseable = No

                    [public]

                                  comment = Public Stuff

                                  path = /share

                                  guest ok = Yes

              E、访问Samba服务器的共享文件:   

                    E1:CentOS系统下测试:                 

                     [root@samba /]# smbclient //127.0.0.1/public

显示结果:

WARNING: The security=share option is deprecated

                    Enter root's password:

由于是匿名用户,没有设置密码,所以在此直接回车即可:

Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.9-167.el6_5]

                    Server not using user level security and no password supplied.

                     smb: \>

在此输入 ls 命令,回车得到如下信息:

smb: \> ls

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/02ff9afd251731bd4882eb016d6d450c.html