Beginner, Share
Environment and Conditions---
Virtual machines: VMware virtual machines
System: Linux ubuntu 4.4.0-31-generic #50 ~14.04.1-ubuntu SMP Wed Jul 01:07:32 UTC x86_64 x86_64 x86_64 gnu/linux
1: Boot into system terminal, shortcut key "Ctrl" + "Alt" + "T",
in terminal input " sudo apt-get install samba Samba-common "Enter, the system will prompt you to brush in the current user's password, entered the password to start the installation."
When the download is complete, the user is asked to perform the installation, and enter "Y" to start execution. Wait for the installation to complete silently.
2: Create a shared folder. In terminal input "sudo mkdir/home/share" to establish a shared folder named share. Then type "chmod 775/home/share" in the terminal to modify the folder properties.
3: Modify the Samba configuration file. In terminal, enter "sudo vi/etc/samba/smb.conf" to open the configuration file. Write "Security = user" in the position of approximately 69 lines.
Add at the end of the file
[MyShare]
Comment = My share directory//description
Path =/home/share//shared folder directory
Browseable = yes//shared readable
writable = yes//shared writable
Save exit
4:samba User Establishment
5: Query Linux system IP. Enter "Ifconfig" in the terminal. Querying the IP of the system
6: Connect. In Windows run, enter the IP connection, then enter the user name and password, you can successfully enter the shared folder, but the files in the share cannot be modified.
Attention:
If downloading samba is unsuccessful, enter the "sudo apt-get update" update
VI Display line number ": Set Nu"
Other operations
See which users are already in the Samba server:
sudo pdbedit-lremove a user from the Samba servicesudo smbpasswd-x user nameTo view all users in Linux:cat/etc/passwdTo view all the groups in Linux:Cat/etc/groupDelete a Linux usersudo userdel user nameRemove all information from a user in Linuxsudo userdel-r user name
Samba Server Setup under Linux