[root@root]vi /etc/smba/smb.conf
设置共享
1.
[共享名]
comment =共享名称
path = /路径
admin users = root
valid users = root,oracle
write list = root,oracle
public = no
writable = yes
printable = no
create mask = 0765
2、给共享文件夹配置共享用户名和密码
cat /etc/passwd | mksmbpasswd.sh > /etc/smba/smbpasswd
smbpasswd 用户名
密码
确认密码
例如:
smbpasswd g
g
g
3、重新启动Samba服务:
[root@root]# service smb restart
4、开机启动 自动运行共享
chkconfig -level 3 smb on