Wei Dongshan teacher learning video for some time, but the program needs to pass through filezilla back and forth between windows and linux, a lot of trouble, under the guidance of my cousin's, the samba service installation configuration, toss a long time, I found a lot of tutorials, basically do not fly
The following tutorial, I found no problems.
A samba installation:
sudo apt-get install samba
sudo apt-get install smbfs
Second, create a shared directory:
mkdir /home/sam/share
sudo chmod 777 /home/book/file
Third, create a Samba configuration file:
1. Save the existing configuration file
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.bak
2. Modify the existing configuration files
sudo vim /etc/samba/smb.conf
Add [Global] under
usershare owner only =false
Finally, add in smb.conf
[Opt] // here with the same name as the folder name may file sharing
path = / opt # shared folders
available = yes
browseable = yes
public = no
writable = yes
valid users = book # valid account
IV. Creating samba accounts
sudo touch /etc/samba/smbpasswd
sudo smbpasswd -a book
Then you will be asked to enter a password samba account
[If there is no fourth step, when you will be prompted to log in session setup failed: NT_STATUS_LOGON_FAILURE]
V. restart the samba server
sudo /etc/init.d/smbd restart