Samba-building and configuration of a file-sharing server

Source: Internet
Author: User

Download and install:

    • Deb Package Installation

Official Deb Pack Download: http://packages.ubuntu.com/

command to install Dpkg–i xxxx.deb (installation is not successful note Log installation dependency package)

    • APT Installation

Apt-get Install Samba

To test whether the installation was successful:

Direct directory access to Linux Ip:\\192.168.xxx.xxx

If you have access will show an empty directory stating that the installation was successful. The installation failed while the access failed.

To access the configuration:

Modifying a configuration file vi/etc/samba/smb.conf

[Global]

This section is generally not modified for global configuration, if it is configured as all users do not need password access to Security = User Configuration Security = Share

[Printers]

Configure the printer, you can not modify

Add the configuration as needed:

[XXXX]-Set the name of the folder to be displayed when accessed under Windows, optionally set

Comment = xxxx ' s file directory--current configuration instructions, arbitrarily set

Path =/home/xxxx--The actual Linux directory that is displayed after access (must be configured)

browseable = yes--can be browsed

public = no-open, yes no account password required

Valid users = @xxxx-allows access to the user (user added using Smbpasswd–a, Root does not need the @ symbol)

writable = yes-writable (not configured by default is not writable)

Create mode = 0664--Creating file permissions

Directory mode = 0775--Catalog permissions

Specific chestnuts:

1. All users can access a common directory without a password

2. User can access the exclusive directory via account

[Public]

Comment = everybody can visit

Path =/home/public

Public = yes

Read Only = yes

[Bing]

Comment = Bing ' s home directory

Path =/home/bing

browseable = No

public = No

Valid users = @bing

writable = yes

Create mode = 0664

Directory mode = 0775

Restart SAMBA:/ETC/INIT.D/SMBD restart

Direct access, enter the public directory, access to the Bing directory, need authentication.

Samba-building and configuration of a file-sharing server

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.