服务器基本配置(续)
全局配置
[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教程。
温馨提示:答案为网友推荐,仅供参考