用XP 访问 linux 共享文档
1. sudo apt-get install samba
2. 改 smb.conf
chechunli@chechunli-desktop:samba $ pwd
/etc/samba
chechunli@chechunli-desktop:samba $ cat smb.conf
[global]
workgroup = LinuxSir
netbios name = LinuxSir05
server string = Linux Samba Server TestServer
security = share
[linuxsir]
path = /opt/linuxsir
writeable = yes
browseable = yes
guest ok = yes
3 mkdir /opl/share
4 重启samba
chechunli@chechunli-desktop:samba $ sudo /etc/init.d/samba stop
* Stopping Samba daemons [ OK ]
chechunli@chechunli-desktop:samba $ sudo /etc/init.d/samba start
* Starting Samba daemons
设置密码:
[global]
workgroup = LinuxSir
netbios name = LinuxSir05
server string = Linux Samba Server TestServer
security = user
[linuxsir]
path = /opt/linuxsir
writeable = yes
browseable = yes
valid users = linuxsir
添加user 和 密码
# sudo smbpasswd -a linuxsir
New SMB password:
Retype new SMB password:
阅读(1460) | 评论(0) | 转发(0) |