配置samba服务
2009-06-13 23:10
344 查看
安装简单的samba服务
目得:一直使用Xmanage给linux传文件,今天试用到期没去找注册码就安装一个简单的samba服务给linux传文件,顺便把过程记录了一下,方便以后用时查看.1. 安装samba
2.创建samba用户及设置密码
.创建用户设置密码
3.修改smb配置文件
只需简单的去几个”;”号就可以了修改成如下,或直接用以下配置文件就OK了
copy /etc/samba/smb.conf /etc/samba/smb.conf.bak
vi smb.conf
#添加如下代码,如果修改以前的配置文件,红色的为修改的地方
[global]
workgroup = MYGROUP
server string = Samba Server Version %v
netbios name = MYSERVER
interfaces = lo eth0 192.168.0.0/24
hosts allow = 127. 192.168.0. 192.168.13.
# logs split per machine
log file = /var/log/samba/%m.log
# max 50KB per log file, then rotate
security = user
passdb backend = tdbsam
load printers = yes
cups options = raw
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
template shell = /bin/false
winbind use default domain = no
[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]可以发布更多的目录,但一定要注意在目录上给777的权限,
#security = user
#passdb backend = tdbsam
#上面两行设小权限
[public]
comment = Public Stuff
path = /home/samba
public = yes
writable = yes
printable = no
write list = +staff
4.重新启动samba
5.客启端登录
开始/运行
输入用户名和密码
[align=center][/align]
可以使用了(只有它自己的家目录有读写权)
本文出自 “追求” 博客,请务必保留此出处http://chenxy.blog.51cto.com/729966/166687
相关文章推荐
- ubuntu 12.04 简单配置samba服务,实现主机与虚拟机互通(设置Windows虚拟盘)
- 简述Linux下Samba服务的安装与配置
- Centos7.2 操作系统安装配置Samba服务文档
- samba服务配置文件详解 中文
- 配置ubuntu开机自动启动samba服务命令
- 菜鸟配置SAMBA服务之3
- ubuntu12.04配置Samba服务实现文件夹共享
- Linux上Samba服务的详细配置
- Samba服务配置文件中涉及到的配置命令列表
- 配置samba服务
- Ubuntu samba配置服务文件包
- Fedora上安装并配置samba服务
- (转)Ubuntu samba配置服务文件包
- Linux网络配置 RPM命令 samba服务 Linux目录结构
- Redhat Samba服务配置
- 【原创】samba服务--基于窗口方式配置...
- ubuntu 下配置NFS,samba, telnet,TFTP,ftp,DHCP服务
- 三种常见的文件共享服务--ftp,nfs,samba 区别和配置
- Samba服务配置文件中涉及到的配置命令列表
- samba服务配置(二)