Install and deploy the samba service in Ubuntu

Source: Internet
Author: User
Installation and deployment of samba service in Ubuntu I. environment: 1. ServerOS: Ubuntu12.04Server (VMware Virtual Machine) IP address: 192.168.1.1662. test Connection Machine windows7IP: 192.168.1.100 II. installation and deployment: 1. software installation Java code sudoapt-ge... 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/s Amba/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 part 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 fo R 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 is added to the end of the file as follows: 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, freely modify path: shared folder path browsable: whether shared browsing can be performed through Windows Explorer, if no, the shared folder guest OK cannot be seen during windows access sharing: OK Access the shared read only with no password: read-only or not. no indicates that you have the write permission to create mask: create a new file. if you have 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.