Install and deploy the samba service in Ubuntu

Source: Internet
Author: User

Installation and deployment of samba service in Ubuntu I. Environment: 1. Server OS: Ubuntu 12.04 Server (VMware Virtual Machine) IP Address: 192.168.1.1662. test connection machine windows7 IP Address: 192.168.1.100 II. installation and deployment: 1. software Installation Java code sudo apt-get install samba 2. create a shared folder (or select a folder as needed) Java code sudo mkdir-p/srv/samba/share sudo chown nobody. nogroup/srv/samba/share/3. modify the configuration file vi/etc/samba/smb. conf 3.1 modify the following two items in [global]: Java code # Change this to the workgroup/NT-domain name your Samba server will p Art of workgroup = WORKGROUP # "security = user" is always a good idea. this will require a Unix account # in this server for every user accessing the server. see #/usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html # in the samba-doc package for details. # security = user security = share. If security = user is configured, the user/password must be provided during access (Server system pre-created ), security = share indicates that no password is required for access. 3.2 the following code is appended to the end of the file: Java code [Share] comment = Ubuntu File Server Share path =/srv/samba/share browsable = yes guest OK = yes read only = no create mask = 0755 configuration item meaning: [share]: shared File Name comment: Shared description. You can freely modify path: Shared Folder path browsable: whether shared browsing can be performed through Windows Explorer. If no, the shared folder guest is not displayed during windows Access sharing. OK: whether the shared read only can be accessed without a password: whether it is read-only. no indicates that you have the write permission. create mask: Permission for creating new files. If there are multiple shared folders, add multiple [share] configuration clips. 3.3 restart related service Java code sudo restart smbd sudo restart nmbd III. Test function 1. Run \ 192.168.1.166 in window7, shared Folders can be viewed and used by share2, and shared folders can also be found in "network ".

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.