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

samba and rsyncd 配置文件

时间:2014-09-23 03:04:54      阅读:338      评论:0      收藏:0      [点我收藏+]

标签:samba 配置文件

[global]
        workgroup = MYGROUP
        server string = Samba Server Version %v
        interfaces = lo eth0 192.168.1.19/24
        hosts allow = 192.168.
        log file = /var/log/samba/log.%m
        max log size = 50
        security = user
        passdb backend = tdbsam
        load printers = yes
        cups options = raw

[homes]
        comment = Home Directories
        browseable = no
        writable = yes

[printers]
        comment = All Printers
        path = /var/spool/samba
        browseable = no
        guest ok = no
        writable = no
        printable = yes

[share]
        comment = php project
        path    = /var/www/html/guest
        guest ok = yes
        writable = yes
        read only = no
        browsable =yes
        valid users = guest
        locking = no
        public = yes
        create mode = 644
        case sensitive = yes
        directory mode = 755
        write list = guest


# useradd guest

#smbpasswd -a guest

输入密码:guest

请确认:guest

创建成功!

# mkdir /var/www/html/guest

# chown -R guest.guest /var/www/html/guest




uid = nobody

gid = nobody

use chroot = yes

max connections = 4

syslog facility = local1

pid file = /var/run/rsyncd.pid


[ test ]

uid=root

gid=root

path=/tmp/test

hosts allow = 192.168.1.19

read only = no


本文出自 “秋风颂” 博客,请务必保留此出处http://qiufengsong.blog.51cto.com/7520243/1557115

samba and rsyncd 配置文件

标签:samba 配置文件

原文地址:http://qiufengsong.blog.51cto.com/7520243/1557115

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