一. Install the samba:
sudo apt-get insall samba
sudo apt-get install smbfs
二. Create the share directory:
mkdir /home/phinecos/share
sodu chmod 777 /home/phinecos/share
三. Create Samba config file:
1. Bak the config file
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.bak
2. Modify the config file
sudo gedit /etc/samba/smb.conf
Add the following sentence in end of smb.conf
[share]
path = /home/phinecos/share
available = yes
browsealbe = yes
public = yes
writable = yes
四. Create the samba account
sudo touch /etc/samba/smbpasswd
sudo smbpasswd -a username
input the samba passwd
[If you didn't set the samba passed,you can find the prompt in session setup failed: NT_STATUS_LOGON_FAILURE]when you login in.
五. Restart samba server
sudo /etc/init.d/samba restart
六. Testing
smbclient -L //localhost/share
七,You can share the /home/phinecos/share directory in windows
windows: input the IP