Install samba in ubuntu

Source: Internet
Author: User
Code: sudoapt-getinstallsambasudoapt-getinstallsmbfs. Let's share the readable and writable folders in the group. Suppose you want to share the folder:/home/ray/share. First, create the folder code: mkdir/home/ray/mongochmod777/home/ray/share backup and edit smb. conf allows network users to access the code: sudocp

Code:
Sudo apt-get install samba
Sudo apt-get install smbfs


Next we will share the readable and writable folders of the group. Assume that the folder you want to share is/home/ray/share.

First create this folder
Code:
Mkdir/home/ray/share
Chmod 777/home/ray/share


Back up and edit smb. conf to allow network users to access
Code:
Sudo cp/etc/samba/smb. conf/etc/samba/smb. conf_backup
Sudo gedit/etc/samba/smb. conf


Search for this line of text
Code:
; Security = user


Replace the following rows
Code:
Security = user
Username map =/etc/samba/smbusers


Add the following lines to the end of the file. Assume that the user allowed to access the file is newsfan. The shared folder name is Share.

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.