Configure the Samba service in Ubuntu11.04

Source: Internet
Author: User
I. install Samba in Ubuntu11.04: $ sudoapt-getinsallsamba $ sudoapt-getinstallsmbfs II. create a shared directory: $ mkdir/home/work/samba_share $ soduchmod777/home/work/samba_share # if not modified

1. Install Samba in Ubuntu 11.04:

$ Sudo apt-get insall samba

$ Sudo apt-get install smbfs

2. Create a shared directory:

$ Mkdir/home/work/samba_share

$ Sodu chmod 777/home/work/samba_share # If you do not change the permission, you cannot write data in windows (applicable to read-only sharing )!!!

3. Modify the Samba configuration file:

$ Cp/etc/samba/smb. conf/etc/samba/smb. conf. old # back up the samba configuration file

$ Sudo gedit/etc/samba/smb. conf

Change security = user to security = share.

Move the cursor to the last line of the configuration file and add the following configuration lines below

[Home]

Comment = homepath

Path =/home/work/samba_share

Writable = yes

Locking = no

Public = yes

Guest OK = yes

4. Restart the Samba Service

# Sudo/etc/init. d/smbd restart

OK!

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.