linux samba文件共享服务器

葫芦的运维日志

下一篇 搜索 上一篇

浏览量 4517

2014/02/01 02:06


修改/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

 

葫芦的运维日志

打赏

上一篇 搜索 下一篇
© 冰糖葫芦甜(bthlt.com) 2021 王梓打赏联系方式 陕ICP备17005322号-1