您的位置:首页 > 运维架构 > Linux

linux系列服务总结之四:SAMBA共享设置完整介绍

2009-08-31 14:33 537 查看
1 查看及安装软件包

[root@rhel4-1 ~]# rpm -qa |grep samba
samba-client-3.0.10-1.4E.9
samba-3.0.10-1.4E.9
system-config-samba-1.2.21-1
samba-common-3.0.10-1.4E.9

2 查看默认配置文件

[global]
workgroup = jxwpx server string = Samba Server
log file = /var/log/samba/%m.log
max log size = 50

security = user

[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

[public]
path = /home/public
public = yes
only guest = yes
writable = yes
printable = no

3 建立samba用户
# adduser c1
# smbpasswd -a c1

4 测试配置文件
# testparm

5 启动samba服务器

# service smb start 1 列出samba服务器的共享目录
# sambaclient -L 192.168.1.1 -U admin

2 连接远程共享
# smbclinet //192.168.1.1/share -U admin

3 挂载远程目录
# sambamount //192.168.1.1/public /mnt

# mount -t smbfs -o username=admin //192.168.1.1/public /mnt

smbmount //192.168.1.1/public /mnt -o username=admin

然后,进入/mnt目录查看windows共享中的资源。
本文出自 “云计算与大数据_jxwpx” 博客,请务必保留此出处http://jxwpx.blog.51cto.com/15242/197274
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: