Ubuntu installs Samba and adds accounts

Source: Internet
Author: User
Tags save file

Install Samba in Ubuntu and add an account: 1. Update source list: sudo apt-get update2. Installing samba:sudo apt-get Install Samba Samba-common3. Create a new shared directory and set permissions 3.1 Create a shared directory in the home directory share the sudo mkdir in the terminal/home/share3.2 Setting permissions for the shared directory (read and Write permissions) enter sudo chmod 777 in the terminal/home/share4. Modify configuration file smb.conf4.1 Open profile smb.conf, enter sudo gedit/etc/samba/smb.conf4.2 in terminal to modify configuration file 1) Security = user2) Add the share at the end of the smb.conf file:(samba_share is the directory name for external display ) [samba_share] comment = Samba server mashare spacePath = /home/share browseable = yeswritable = yesGuest OK = yesPublic = yes3) Save file5. Create a new user to access the resource and set a password5.1 Creating the user sudo useradd smbuser5.2 Set the user's login password sudo smbpasswd-a smbuser5.3 Restart Samba service SMBD restart6. View the IP address of the current server and access the shared directory under Windows6.1 View server IP use Ifconfig to view current server IP6.2 access to shared directory under Windows samba_share: Enter ip/samba_share at the folder

Ubuntu installs Samba and adds accounts

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.