sudo apt-get install samba sudo apt-get install cifs-utils
mkdir /home/kent/share sudo chmod 777 /home/kent/share
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.bak
sudo vi /etc/samba/smb.conf在smb.conf最后添加
[share] path = /home/kent/share available = yes browsealbe = yes public = yes writable = yes
sudo touch /etc/samba/smbpasswd sudo smbpasswd -a kent然后会要求你输入samba账号的密码
sudo /etc/init.d/samba restart
可以到windows下输入ip使用了,在文件夹处输入"\\"+"Ubuntu机器的ip或主机名"+"\"+"share"
右击计算机——》映射网络驱动器——》文件夹——》输入"\\"+"Ubuntu机器的ip或主机名"+"\"+"share"——》完成