Configure Samba in Ubuntu to share folders

Source: Internet
Author: User

I. SambaInstallation:

Sudo apt-Get Insall samba
Sudo apt-Get install smbfs

II.Create shared directory:

Mkdir / Home / Phinecos / Share
Sodu chmod 777   / Home / Phinecos / Share

3..CreateSambaConfiguration File:

1.Save existing configuration files

Sudo CP / Etc / Samba / Smb. conf / Etc / Samba / Smb. conf. Bak

2.Modify the current configuration file

Sudo gedit / Etc / Samba / Smb. conf

InSmb. confLast added

[Share]
Path =   / Home / Phinecos / Share
Available = Yes
Browsealbe = Yes
Public   = Yes
Writable = Yes

Thu.CreateSambaAccount

Sudo touch / Etc / Samba / Smbpasswd
Sudo smbpasswd - A phinecos

Then you will be asked to enterSambaAccount Password

 [If Step 4 is absent, a prompt will be displayed when you log on.Session Setup failed: nt_status_logon_failure]

 V..RestartSambaServer

Sudo / Etc / Init. d / Samba restart

Sat..Test

Smbclient - L // Localhost/share

7. Use

You can enter the IP address in windows and enter it in the folder. " \\ "   +   " The IP address or Host Name of the Ubuntu Machine "   +   " \\ "   +   " Share "

 

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.