1. Ultra-Simple smb.conf
This profile is useful for both Ubuntu and CentOS.
#============== Global Settings ==============[Global] ## browsing/identification # # #Workgroup =mshome Server String=Samba Security=Share wins support=no guest account=wslu#============== Share Definitions ==============[MyWork] Comment=mywork Path= /mywork Valid user=wslu browseable=Yes guest OK=Yes available=Yes public=Yes writable= yes
Description
(1) Guest account = Wslu, where wslu is the name of my Samba accounts and my system account name.
Attention:
(1) The/mywork directory is accessed with the guest permission, so the/HOME/WSLU directory cannot be specified because the default permissions for this directory are 700.
(2) Create the/mywork directory with the root user, modify its owner and group to Wslu, and set its permissions to 777.
(3) The configuration file does not describe the permissions to create new directories and files, so it follows the operating system settings.
============================== Gorgeous split-line =================================
For Ubuntu, you can find the configuration software for the graphical interface of samba in the software source, such as:
Then it can be configured by this software, very simple.
There should also be similar software for CentOS.
Linux System (Ubuntu/debian/redhat/centos) Super Simple samba configuration file smb.conf