samba配置

第一步是先建立用户组

再建立用户,然后建共享文件夹,

如:groupadd   caiwu

useradd wan –g caiwu

mkdir   caiwu

把用户增加到samba共享名单中

    smbpasswd –a wan

下面是smb.conf是配置

#======================= Global Settings =====================================

[global]

 

# workgroup = NT-Domain-Name or Workgroup-Name

    改workgroup =  workgroup

        改netbios name = wwy

 

# server string is the equivalent of the NT Description field

        改server string = franck's samba server

 

# This option is important for security. It allows you to restrict

# connections to machines which are on your local network. The

 

 

 

 

username map= /etc/samba/smbusers

password server =none

 

guest ok =yes

gures account =ftp

dsn proxy =no

[homes]

    comment =Home Directories

    browseable = no

    writeable = yes

    valid users = yes

create mask = 0664

directory mask =0775

[caiwu]

    comment =caiwu

    path = /home/samba/caiwu

    write list =wan

    writeable =yes

    printable = no

    create mask = 0765

[exchange]

        comment = Exchange File Directory

        path = /home/samba/exchange

        guest ok = yes

        writeable = yes

        create mask = 777

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值