Ubuntu uses Samba for file sharing with virtual machines

Source: Internet
Author: User

1. Installing Samba

sudo apt install-/etc/samba/smb.conf  /etc/samba/smb.conf.bak

2. Create a folder and modify permissions

sudo mkdir  /var/-R  /var/www
or sudo chown-r your_name:root /var/www

3. Add a password for the samba user (installing Ubuntu will have a user who is yourself like Lucy)

sudo  smbpasswd-a  Lucy  //will prompt for a password, remember to log in later to verify.

4. Modify the Samba configuration file

sudo vim/etc/samba/smb.conf

[WWW]
Comment = www
Path =/var/www
writable = yes
Valid user = Lucy # #你的用户名字

# #重启samba服务

sudo service smbd restart

Ps-ef | grep SMBD Viewing process

5. Open My Computer. On the folder address bar, enter for example:

\ \192.168. 177.100

Enter the user name and password to connect.

6. Open My Computer page, network driver, input address, verify, map into a disk, you can open with phpsorm ...

Ubuntu uses Samba for file sharing with virtual machines

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.