关闭

linux快速部署samba共享服务器带验证

标签: linuxcentos服务器sambaserver
186人阅读 评论(0) 收藏 举报
分类:
安装 SAMBA组件yum install samba
修改/etc/smb.conf
[global]
   workgroup = WORKGROUP
        server string = Samba Server Version1 %v
   netbios name = WANGZISERVER
        unix charset = utf8
        display charset = utf8
        dos charset = cp36
       hosts allow = 127. 192.168.0. 10.0.0.
       log file = /var/log/samba/log.%m
     max log size = 50
security = user
       passdb backend = smbpasswd:/etc/samba/smbpasswd
        load printers = no
        cups options = raw
[homes]
        comment = Home Directories
        browseable = no
        writable = yes
        create mode = 0664
     directory mode = 0775
[project]
comment = smbuser's project
path = /home/project
browseable = yes
writable = yes
write list = @users
[技术部]
comment =信息技术
path = /home/jishu
writeable = yes
browseable = yes
write list = @ftp

创建文件夹:
#mkdir /home/jishu
#mkdir /home/project
#chgrp users /home/project
#chgrp ftp /home/jishu
#useradd -G ftp wangzi
#useradd -G users gongxiang
#echo wangzi | passwd --stdin wangzi
#echo 123 | passwd --stdin gongxiang
#pdbedit -a -u wangzi
#pdbedit -a -u gongxiang
查询目前已经存在的samba账号:
#pdbedit -L
0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:1179次
    • 积分:59
    • 等级:
    • 排名:千里之外
    • 原创:5篇
    • 转载:0篇
    • 译文:0篇
    • 评论:0条
    文章分类
    文章存档