The samba under Linux is very useful, and many people take it as a shared file server,
By default, samba must provide a username and password to access, if it is accessible to everyone, then it is more troublesome, in fact, through a setup, you can not enter the user name password anonymous access
[[Email protected] ~] #mkdir/home/myshare//Create shared folder share
[[Email protected] ~] #vi/etc/samba/smb.conf//Open smb.conf configuration file
Workgroup = workgroup//modified to the same default workgroup as the Windows host
Security = share//Change the safety level to "share"
Then press the PageDown key to add the following configuration to the end of the file:
[MyShare]
Comment = myshare//Folder comment information
Path =/home/myshare//Set shared folder on server heavy paths
Browseable = yes//sets whether the shared folder is visible in My Network Places, and set to No is equivalent to
Hide shared folders.
Guest OK = yes//Set whether the shared folder is accessible to everyone, with public configuration items
Read Only = yes//Set the shared folder permission to read-only
writeable = yes//Set anonymous user writable
After the configuration is complete, press ESC to enter command mode, and then press WQ to save the exit.
After the configuration is complete, start the SMB service with the following command:
[[Email protected] ~] #service SMB Restart
Linux Samba server settings simple anonymous sharing