Configure samba in ubuntu to share folders

Source: Internet
Author: User
Configure samba in ubuntu to share folders. installation of samba: sudoapt-getinsallsambasudoapt-getinstallsmbfs II. create a shared directory: mkdir/home/phinecos/sharesoduchmod777/home/phinecos/share. create...
Configure samba in ubuntu to share folders. installation of samba: sudo apt-get insall sambasudo apt-get install smbfs II. create a shared directory: mkdir/home/phinecos/sharesodu chmod 777/home/phinecos/share
III. create a Samba configuration file: 1. save the existing configuration file sudo cp/etc/samba/smb. conf/etc/samba/smb. conf. bak2. modify the current configuration file sudo gedit/etc/samba/smb. conf in smb. add [share] www.2cto.com path =/home/phinecos/share available = yes browsealbe = yes public = yes writable = yes
4. create the samba account sudo touch/etc/samba/smbpasswd sudo smbpasswd-a phinecos and then ask you to enter the password of the samba account. [if step 4 is absent, when you log on, the system will prompt session setup failed: NT_STATUS_LOGON_FAILURE] 5. restart the samba server sudo/etc/init. d/samba restart 6. test smbclient-L // localhost/share 7. You can enter an ip address in windows, enter "\" + "Ubuntu Server ip address or host name" + "\" + "share" in the folder

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.