setup samba

setup samba 。
1.确认samba 已经安装

rpm -qa|grep samba

samba-client-3.0.28-0.el4.9
samba-common-3.0.28-0.el4.9
samba-3.0.28-0.el4.9
system-config-samba-1.2.21-1.el4.1


2. vi /etc/samba/smb.conf
添加一个 share 资源
[aaaaa]
comment = Public Stuff
path = /home/jian
public = yes
writable = yes
printable = oo
browseable = yes
create mode = 0664
directory mode = 0777

2'. 测试samba 配置文件
testparm


[global]
workgroup = MYGROUP
server string = Samba Server Version %v
passdb backend = tdbsam
max log size = 50
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
hosts allow = 127., 192.168.12., 10.32.
cups options = raw

[homes]
comment = Home Directories
read only = No

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

[apsara]
comment = Public Stuff
path = /home/jian
read only = No
create mask = 0664
directory mask = 0777
guest ok = Ye


3. 添加 samba 用户

sudo smbpasswd -a jian

3'。检查用户
pdbedit –L

4. 重启 samba
service smb restart

Shutting down SMB services: [ OK ]
Shutting down NMB services: [ OK ]
Starting SMB services: [ OK ]
Starting NMB services: [ OK ]


5. windows 连接
\\10.***\aaaaa
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值