How to Use samba in ubuntu to create a share, javastusamba

Source: Internet
Author: User

How to Use samba in ubuntu to create a share, javastusamba

Quickly and easily create shared files, which is much better than those outdated documents on the Internet.

Address: https://help.ubuntu.com/community/How%20to%20Create%20a%20Network%20Share%20Via%20Samba%20Via%20CLI%20%28Command-line%20interface/Linux%20Terminal%29%20-%20Uncomplicated,%20Simple%20and%20Brief%20Way!

How to Create a Network Share Via Samba Via CLI (Command-line interface/Linux Terminal)-Uncomplicated, Simple and Brief Way!

In this text, I teach how to create a network share via Samba using the CLI (Command-line interface/Linux Terminal) in an uncomplicated, simple and brief way targeting Windows users.

Procedures

All commands must be done as root (precede each command with 'sudo' or use 'sudosu ').

  • Set a password for your user in Samba
  • Create a directory to be shared

    Mkdir/home/<user_name>/<folder_name>

  • Make a safe backup copy of the original smb. conf file to your home folder, in case you make an error

    Sudo cp/etc/samba/smb. conf ~

  • Edit the file "/etc/samba/smb. conf"

    Sudo nano/etc/samba/smb. conf

  • Restart the samba:

    Sudo service smbd restart

  • Once Samba has restarted, use this command to check your smb. conf for any syntax errors

    Testparm

  • To access your network share

    To access your network share use your username (<user_name>) and password through the path "smb: // <HOST_IP_OR_NAME>/<folder_name>/" (Linux users) or "\\< HOST_IP_OR_NAME >\< folder_name> \" (Windows users ). note that "<folder_name>" value is passed in "[<folder_name>]", in other words, the share name you entered in "/etc/samba/smb. conf ".

  • Source

    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.