全局配置
[global]
workgroup = 工作组名称
server string = 描述内容
netbios name = 服务器名称
security = share | user
share: 以nobody 身份登录,不需要口令,但访
问共享资源时需要口令
user: 以具体用户身份登录,需要用户名和口令
服务器基本配置(配置实例)
lobal] [global]
workgroup = engineer workgroup = engineer
netbios name = rhel5 netbios name = rhel5
server string = fileserver server string = fileserver
security = share security = user
注意事项:
如果使用security = share ,在服务器上必须为nobody 设置口令
使用命令smbpasswd -a nobody
服务器基本配置(续)
●
共享资源配置:主目录共享
[homes]
browseable = yes | no
writable = yes | no
服务器基本配置(续)
●
共享资源配置:自定义共享
[movie] 共享名
path=/disk/data/movie 共享目录路径
browseable = yes
writable=no
[music]
path=/disk/data/music
browseable = no
writable= yes
这里是配置
如果想要更多的SAMBA配置可加QQ306505716 我这里有完整的SAMBA教程。1 了解apache,mysql,sql,php的概念
2 搭建调试环境:
需要在机器上安装apache和mysql,我猜你是用windows的,最好去下一个集成的安装包:XAMPP,能省去n多的麻烦
然后,跟教程写一些简单的代码,把环境先跑通。
参考:>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)