- #mkdir /workspace
- #vim /etc/samba/smb.conf
[public]
comment = Public Stuff
path = /workspace
public = yes
writable = yes
printable = no
write list = +root
browseable = yes
- 新建用户名并修改密码
# smbpasswd -a root
New SMB password:
Retype new SMB password:
- #service smb restart
- 临时关闭SELinux
#setenforce 0
# vim /etc/selinux/config
SELINUX=disabled
6.smbpasswd -a username
在smbpasswd文件中有username这一项就应该可以了
7.关闭linux防火墙
方法1:重启后永久生效
chkconfig iptables on
chkconfig iptables off
方法2:即使生效 重启后失效
service iptables start
service iptables stop
注:清空windows运行保存的密码命令
net use * /del /y