zoukankan      html  css  js  c++  java
  • (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
    

      

  • 相关阅读:
    千年决心
    编译器及其命令行模式杂谈
    How Microsoft Lost the API War
    再看计算机本科该如何学习
    C++杂记(一)
    C++杂记
    Java IO 学习心得
    VMDq (Virtual Machine Device Queue) in OpenSolaris
    WCHAR and wchar_t 的区别 (zz)
    error C3225: generic type argument for 'T' cannot be 'System::Collections::Generic::KeyValuePair ^',
  • 原文地址:https://www.cnblogs.com/aiyr/p/8144326.html
Copyright © 2011-2022 走看看