Ubuntu Samba Service Setup

Source: Internet
Author: User

Update Source list
Open "Terminal Window", enter sudo apt-get update
Open "Terminal Window", enter sudo apt-get install samba Samba-common

Create a new shared directory and set permissions
Open "Terminal Window", enter sudo mkdir/home/share "--Return to shared directory share new success.
Enter the sudo chmod 777/home/share--> carriage return so that the user has write access to the shared directory.

Open configuration file smb.conf

Enter sudo vim/etc/samba/smb.conf, add at the end of the file

[MyShare]

Comment = My share directory

Path =/home/share
browseable = yes
writable = yes

Create a new user to access the shared resource and set a password

Enter sudo useradd smbuser--> Enter and the user is created successfully.

Enter sudo smbpasswd-a smbuser--> carriage return-Enter two times the password and return-the password is set successfully, this user belongs to the SMB group. Similar to adding other users and passwords.

Enter the sudo service smbd restart to restart Samba services--return-to-service restart success.

To access a shared directory named MyShare

In the Test Run window under Windows, type "\\192.168.30.158"-carriage return-double-click on myshare--> Carriage return-Enter user name and password--Return to access success

Ubuntu Samba Service Setup

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.