1.安装samba
apt-get install | samba
Configuring Samba
Vim / etc / Samba / the smb.conf
mobile switching final edit mode display press the bottom left key i [the INSERT] completed
[code] // the name of the shared directory
path = / code
Writable = Yes // is writable
= yes browseable // whether you can browse
the Guest the ok = yes // Are not landed visit open can directly access. Does not require login password
Press esc lower left corner of the display [INSERT] gone. Description change to command mode
: WQ // write quit
3. restart the
pkill | smbd
smbd restart
ps View command ps -ef | grep smbd // filter includes a display of smbd
4. Create a directory
mkdir / code // Create a directory
chmod 777 / code // owns all rights
LS - | grep code // permissions can view the situation
Permissions drwxr-xr-x 2 root // root // User Group 4096 // port jan 7 23: 00 // time code // folder
nobady chown: nogroup / code // set the write permissions
Access path windos key + r to open the Run input \ 192.168.1.100 enter button to enter
You can directly edit the file linux in windos
better to add a text.txt file.
On linux you can view
cd / code
LS
vim named text.txt in the
Shared file sets parameters
[Share] # custom share name
comment = This is share software # shared described
path = / home / testfile # shared directory path
browseable = yes / no # whether to set up a shared visit, if it means no hidden, you need access to IP + Share Name
writable = yes / no # Set whether shared writable
read only = yes / no # whether to set up a shared read-only privileges
admin users = root # Set shared administrator, if security = share, the entry is invalid cited multiuser intermediate separated by commas, e.g. admin users = root, user1, user2
valid users = username # Set allows the user to access a shared, for example, valid users = user1, user2, @ group1, @ group2 (multi-user or group comma, @ represents a group group group of users)
invalid users = username # Set the user is not allowed to access shared
write list = username # provided the user has write access to shared, such as for example, write list = user1, user2, @ group1, @ group2 (multi-user or group comma, @ represents a group group group of users)
public = yes / no # Set whether to allow guest to share account access
guest ok = yes / no # with public functions as
create mask = 0700 # file permissions created for the 700
directory mode = 0700 # 700 files directory created