Ubuntu下Samba服务器的简单应用
Ubuntu下Samba服务器的简单应用
1.Samba install
apt-get install samba
apt-get install smbfs
2.create share location
mkdir /home/sillycat/share
chmod 777 /home/sillycat/share
3.modify the config file for samba
mv /etc/samba/smb.conf /etc/samba/smb.conf.bak
vi /etc/samba/smb.conf
[global]
workgroup = MYGROUP
security=share
guest ok = yes
[share]
path=/home/sillycat/share
browseable=yes
writeable=yes
testparm
5.restart the samba server
/etc/init.d/samba restart
6.test connection
install the client soft:
apt-get install smbclient
local machine:
smbclient -L //localhost/share
remote machine:
smbclient //www.sillycat.com/share