安装和配置samba服务器,只设置一个共享目录/opt/share,用过用户名/密码的方式访问
1.安装
# yum install samba.i386 samba-client.i386 samba-common.i386 system-config-
samba.noarch samba-swat.i386
# service smb restart
# ntsysv
2.添加用户并设置权限
# useradd guomiaomiao
# chown guomiaomiao.root /opt/share/ -R
# vi /etc/samba/smb.conf
[global]
workgroup = Potevio
netbios name = gmm_samba
server string = Gmm Samba Server
security = user
[share]
path = /opt/share
writeable = yes
browseable = yes
guest ok = yes
# smbpasswd -a guomiaomiao
# service smb restart
阅读(845) | 评论(0) | 转发(0) |