Ubuntu uses Samba to map disks to Windows

Source: Internet
Author: User
1. First install samba on Ubuntu. The specific steps are as follows: Install samba: sudoapt-getinstallsamba to install smbclient: sudoapt-getinstall to install smbfs: sudoapt-getsmbfs2, modify configuration file sudogedit/etc/samba/smb. conf edit smb. the conf file will be repaired by securityuser.

1. First install samba on Ubuntu. The specific steps are as follows:

Install samba: sudo apt-get install samba

Install smbclient: sudo apt-get install

Install smbfs: sudo apt-get smbfs

2. modify the configuration file

Sudo gedit/etc/samba/smb. conf edit the smb. conf file

Modify security user to security user, and then add

[Program files]
Comment = Shared Folder require password
Path =/home/magic/share
Public = yes
Writable = yes
Valid users = magic
Create mask = 0777
Directory mask = 0777
Force user = nobody
Force group = nogroup
Available = yes
Browseable = yes


Save and restart samba, sudo/etc/init. d/samba restart

3. Set the user and password

Sudo smbpasswd-a magic then prompts you to enter the password.


4. In the end, select "Network Neighbor" under windows-> right-click and select "ing network drive ".

Enter the Folder \ IP address \ Program Files, and enter the user name and password as prompted.

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.