按照指示,前往: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
