samba配置

博客介绍了Samba服务器的配置步骤,先建立用户组和用户,创建共享文件夹,将用户添加到samba共享名单。还给出了smb.conf的配置内容,包括全局设置、用户主目录和不同共享文件夹的配置,如workgroup、server string等参数的修改。

第一步是先建立用户组

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

如: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

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值