[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