Basic configurations of the Ubuntu 12.04 Samba Server

Source: Internet
Author: User

1. Install Ubuntu Samba Configuration:

Sudo apt-Get Insall samba

Sudo apt-Get install smbfs

2. Create a shared directory:

Mkdir/home/suixiang/share

Sodu chmod 777/home/suixiang/share

3. Create the Ubuntu Samba configuration file:

1. Save the existing configuration file

Sudo CP/etc/samba/smb. conf/etc/samba/smb. conf. Bak

2. modify the current configuration file

Sudo gedit/etc/samba/smb. conf

Add at the end of smb. conf

[Share]

Path =/home/suixiang/share

Available = Yes

Browsealbe = Yes

Public = Yes

Writable = Yes

4. Create an Ubuntu Samba account

Sudo touch/etc/samba/smbpasswd

Sudo smbpasswd-A suixiang

Then you will be asked to enter the password of the samba account

If Step 4 is not displayed, the system prompts Session Setup failed: nt_status_logon_failure when you log on.]

5. Restart the Ubuntu Samba Server

Sudo/etc/init. d/smbd restart

Vi. Ubuntu Samba configuration test

Smbclient-l // localhost/share

7. Ubuntu Samba configuration and use

You can enter the IP address used in windows, and enter "\" + "ubuntu machine IP address or host name" + "\" + "share" in the folder"

Smbclient-l // localhost/share

The above suixiang is the user name of the system...

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.