• (samba启动失败)smb.service: main process exited, code=exited, status=1/FAILURE


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

      

  • 相关阅读:
    jwt
    初入爬虫(java)
    SQL SERVER 查询第20行到30之间的数据
    JS 禁用按钮10秒方法
    My97DatePicker(js日期插件) v4.8
    IOS系统兼容input 监听事件
    SQLServer将一个表的数据导入到另一个表
    JS 截取地址栏指定字符后的内容
    C# EPPlus 导出Excel
    将解压后的文件复制到指定文件夹
  • 原文地址:https://www.cnblogs.com/aiyr/p/8144326.html
Copyright © 2020-2023  润新知