Install and configure the Samba server on the UbuntuLinux System

Source: Internet
Author: User
1. Open the Ubuntu terminal, enter the sudoapt-getinstallsambasmbfs2, create a shared share. Anonymous Access, only read. The user smbuser can write and read data. 1), sudogroupadd-g300smb2), sudouseradd-u300-g300-d/dev/null-s/dev/nullsmbguest3), smb

1. Open the Ubuntu terminal and enter sudo apt-get install samba smbfs

2. Create a shared share. It can be accessed anonymously and can only be read. The user smbuser can write and read data.

1) sudo groupadd-g 300 smb

2) sudo useradd-u 300-g 300-d/dev/null-s/dev/null smbguest

3) smbguest must be consistent with the one defined in the guest account = smbguest field (see modify smb configuration file later ).

4) sudo useradd-u 301-g 300-d/dev/null-s/dev/null smbuser

5), security = user (this step may be a problem. If there is a problem, it will jump to 6)

6) sudo mkdir/home/smbhome

7) sudo chown smbuser/home/smbhome

8), sudo chgrp smb/home/smbhome

9), sudo chmod 0775/home/smbhome

10) sudo smbpasswd-a smbuser

Note:

Add an smb account and set a password

Sudo smbpasswd-a smbuser

Delete an smb account

Sudo smbpasswd-x smbuser

3. Modify the smb configuration file

Sudo cp/etc/samba/smb. conf/etc/samba/smb. conf. bak

Sudo gedit/etc/samba/smb. conf

Search for and modify the following lines:

; Workgroup = MSHOME

Remove the annotator, and modify MSHOME as your working group name.

View the Working Group Name of a computer

; Security = user

Remove the annotator. Use the user Authentication mode.

; Guest account = nobody

Remove the annotator, and change nobody to smbguest.

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.