Simplest configuration of Samba server in Ubuntu

Source: Internet
Author: User
I. installation of Samba: # sudoapt-getinsallsamba # sudoapt-getinstallsmbfs II. create a shared directory: # mkdir/home/willis/share # soduchmod777/home/willis/share 3. create a Samba configuration file: 01. save...

 

1. installation of Samba:

# Sudo apt-get insall samba

 

# Sudo apt-get install smbfs

 

2. create a shared directory:

 

 

# Mkdir/home/willis/share

 

# Sodu chmod 777/home/willis/share

 

 

3. create a Samba configuration file:

 

 

01. Save the existing configuration file

 

 

# Sudo mv/etc/samba/smb. conf/etc/samba/smb. conf. bak

 

02. create a new Samba configuration file

 

# Sodu gedit/etc/samba/smb. conf

 

 

############## Smb. conf #######################

 

[Global]

; Create a working group

Workgroup = MYGROUP

In security mode, we set the minimum security level

Security = share

; Whether to allow access by the guest user

Guest OK = yes

; Shared folder path

Path =/home/willis/share

; Read permission

Browseable = yes

; Write permission

Writeable = yes

 

 

IV. test file configuration results

 

# Testparm

 

5. restart the Samba service

#/Etc/init. d/samba restart

 

 

6. log out and log on again or restart the machine.

 

7. test login

 

# Smbclient-L // localhost/share

 

Test from a remote host:

 

 

# Smbclient // /Share

 

 

 

Note: If the SAMBA server is set in the LINUX system of the virtual machine, you must set the Nic connecting the external system to the virtual machine system to be consistent with the Gateway of the NIC in the virtual machine before access.

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.