本文共 1278 字,大约阅读时间需要 4 分钟。
目得:
一直使用Xmanage
给linux
传文件,
今天试用到期没去找注册码就安装一个简单的samba
服务给linux
传文件,
顺便把过程记录了一下,
方便以后用时查看.
1. 安装samba
2.创建samba用户及设置密码
3.修改smb配置文件
copy /etc/samba/smb.conf /etc/samba/smb.conf.bak
#
添加如下代码,
如果修改以前的配置文件 , 红色的为修改的地方 server string = Samba Server Version %v interfaces = lo eth0 192.168.0.0/24 hosts allow = 127. 192.168.0. 192.168.13. log file = /var/log/samba/%m.log # max 50KB per log file, then rotate idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
template shell = /bin/false
winbind use default domain = no
comment = Home Directories
#
注,
仿照[public]
可以发布更多的目录,
但一定要注意在目录上给777
的权限,
4.重新启动samba
本文转自 vfast_chenxy 51CTO博客,原文链接:http://blog.51cto.com/chenxy/166687 ,如需转载请自行联系原作者