首页 > 代码库 > samba and rsyncd 配置文件

samba and rsyncd 配置文件

[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 配置文件