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

安装 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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值