码迷,mamicode.com
首页 > 其他好文 > 详细

安装samba服务

时间:2018-09-29 00:44:55      阅读:149      评论:0      收藏:0      [点我收藏+]

标签:back   yum   backend   log   smb.conf   int   end   ups   vim   

  

# See smb.conf.example for a more detailed config file or
# read the smb.conf manpage.
# Run ‘testparm‘ to verify the config is correct after
# you modified it.

[global]
    workgroup = SAMBA
    security = user

    passdb backend = tdbsam

    printing = cups
    printcap name = cups
    load printers = yes
    cups options = raw


[printers]
    comment = All Printers
    path = /var/tmp
    printable = Yes
    create mask = 0600
    browseable = No

[print$]
    comment = Printer Drivers
    path = /var/lib/samba/drivers
    write list = @printadmin root
    force group = @printadmin
    create mask = 0664
    directory mask = 0775
[xxk_data]
    comment=信息科专用
        path=/home/data
        public=no
        writable=yes

 

 

 

 

https://www.cnblogs.com/yinheyi/p/6269576.html

 

yum -y install samba
systemctl enable smb
mkdir -p /home/data
useradd smbuser
pdbedit -a -u smbuser
cd /home/
chown -R smbuser.smbuser data/
vim /etc/samba/smb.conf
[xxk_data]
comment=‘信息科专用‘
path=/home/data
public=no
writable=yes
systemctl restart smb

安装samba服务

标签:back   yum   backend   log   smb.conf   int   end   ups   vim   

原文地址:https://www.cnblogs.com/nodchen/p/9721552.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!