Linux Samba server settings simple anonymous sharing

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.