在Ubuntu的终端中输入一下命令:
#sudo apt-get install samba
(1)在Windows系统中不用输入密码访问Linux共享目录
在Linux共享一个目录,将建立好的目录的设置信息写入/etc/smb.conf文件即可。如:若共享/home/share目录,要在Windows系统中访问这个共享的目录,假设Windows主机的IP为192.168.0.11,Linux主机的IP为192.168.10,进行如下操作:
#mkdir /home/share
#vi smb.conf
将文件中的内容做如下相应修改:
security=user 改为security=share
在文件结尾添加如下行:
[share]
comment=this is Linux share directory
path=/home/share
public=yes
writable=yes
保存退出,启动Samba服务:
#/etc/init.d/samba start
设置完成!
在Windows 下访问共享目录,可点击运行,输入
\\192.168.0.10\share
这样就能以匿名用户访问共享目录share了。