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 guestphp

#smbpasswd -a guesthtml

輸入密碼:guestbash

請確認:guestide

建立成功!ui

# mkdir /var/www/html/guestserver

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




uid = nobodyci

gid = nobodystring

use chroot = yesit

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

相關文章
相關標籤/搜索