Issues that Samba cannot access after sharing files on Windows

Source: Internet
Author: User

The configuration of the/etc/samba/smb.conf is as follows:

#============================ Share Definitions ==============================[Homes] Comment=Home Directories browseable=No writable=Yes valid users= %S Valid Users= mydomain\%S[printers] Comment=All Printers Path= /var/spool/Samba browseable=no guest OK=No writable=No printable=Yes[downloads] Public=Yes comment=Share with Windows path=/home/leng/Downloads browseable=Yes guest OK=Yes writable= yes

To add an accessible user to the command line

# Smbpasswd-a Leng

After entering the password and accessing it on Windows, it is found that you can log on to the Samba server and be able to see the shared folder, but cannot access the folder as follows:

Workaround: (This method is mentioned in/etc/samba/smb.conf)

-T Samba_share_t/path/to/directory

So execute the above command:

#chcon-T Samba_share_t/path/to/directory

can solve the problem

Issues that Samba cannot access after sharing files on Windows

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.