Linux configuration Samba shared Disk service.

Source: Internet
Author: User
1. Install Samba service: Apt-get install Samba
2. Create a system user and Samba to bind: Useradd testuser, then create a password for the user passwd testuser
3. Modify the Samba service configuration file and append the following to the end of the/etc/samba/smb.conf file:
[Printers]
Comment = All Printers
browseable = No
Path =/home/pbc/samba
printable = yes
Guest OK = No
Read Only = yes
Create mask = 0700

[print$]
Comment = Printer Drivers
Path =/home/pbc/samba
browseable = yes
Read Only = yes
Guest OK = No

[Homes]
Comment = Home directories
browseable = yes
Read Only = no
Create mask = 0664
Directory mask = 0775
Valid users =%s

4. Restart Samba Services: Service SMBD restart
5. Windows system hangs on disk command: NET USE/USER:PBC \XX.XX.XX.XX\PBC passwd
6. Ok

Linux configuration Samba shared Disk service.

Related Article

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.