按照指示,前往:journalctl -xe 没什么发现,搜的时候有人说也可以查看 journalctl -r 打出来之后我也看不出什么门道来
又看到有人说 smb 方面可以看看 testparm 我打印了一下,结果报以下warning:
[root@192 samba]# [root@192 samba]# testparm Load smb config files from /etc/samba/smb.conf rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384) WARNING: Ignoring invalid value 'share' for parameter 'security' Error loading services. [root@192 samba]#
这就好说了,我查看了一下自己SMB的配置文件:
cat /etc/samba/smb.conf
里面显示:
[root@192 samba]# cat smb.conf [global] workgroup = WORKGROUP server string = Ted Samba Server %v netbios name = TedSamba #security = user security = share map to guest = Bad User passdb backend = tdbsam [FileShare] comment = share some files path = /home/clj/share public = yes writeable = yes create mask = 0644 directory mask = 0755 [WebDev] comment = project development directory path = /home/wwwroot/default/ valid users = ted write list = ted write list = @www validusers = @www printable = no create mask = 0644 directory mask = 0755
就是里面的 [global] 下面的 security 那里出问题了,我把上面内容调换了一下:
security = user #security = share
这再启动SMB服务器就OK了:
systemctl start smb