Linux samba configuration Summary

Source: Internet
Author: User
Linux samba configuration Summary-Linux Enterprise Application-Linux server application information. For more information, see. The Samba service was previously configured in RedHat Linux, which is easy to use on a graphical interface. The key is to associate Unix users with Windows users. For example, if the user in Unix is hg, you can set the corresponding Windows user as workgroup \ hg. Workgroup is the Working Group where your windows machine is located. However, if there is no graphical interface, such as under Suse, You need to modify the configuration file. The configuration file has two

1. Main configuration files of/etc/samba/smb. conf

2./etc/samba/smbusers user file.

The following is an example of smb. conf:

[Global]; this is where global variables are set.

Workgroup = GROUP; the working GROUP of the Unix machine.

Username map =/etc/samba/smbusers; samba username File

Security = user; security level, set to pass user Authentication

[Share]; this part sets the attributes of each share.

Path =/tmp/share; shared directory

Valid users = sam; valid user

Writeable = yes; whether to write

The following is an example of smbusers:

Sam = yyy \ sam

You can use user sam to log on to the samba server on a machine whose workgroup is yyy.

Then, you need to add a Unix user.

# Useradd sam

Change the password of samba user sam.

OK. Now you can access the shared folder under Linux under Windows.

Note:

Make sure that the firewall is closed. Make sure that SELinux is Disabled.

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.