Open Samba in Windows share under Ubuntu

Source: Internet
Author: User

System version: Ubuntu 14.04

1. Installing Samba Services


sudo apt-get install samba Samba-common

Test is started normally

/ETC/INIT.D/SMBD start


2. Create shared users and shared directories


smbpasswd - a haha

View User Details

Pdbedit-lv

Pdbedit–a Username: Create a new samba account.

Pdbedit–x Username: Delete Samba account.

Pdbedit–l: Lists the list of Samba users and reads the PASSDB.TDB database file.

PDBEDIT–LV: Lists the details of the Samba user list.

Pdbedit–c "[D]" –u Username: suspend the Samba user's account.

Pdbedit–c "[]" –u username: Restore the Samba user's account.



Create a new shared directory with read and write permissions


mkdir / var/ share
Sodu chmod 777 / var/ Share

3. Modify the configuration file/etc/samb/smb.conf

    
        [public]
         comment = Public Stuff
        path =/var/share_file
        public = yes
        browseable = Yes
        writable = yes
        printable = no
        guest ok = yes
         Share modes = yes
        available = yes
         Valid users = @var
        VFS object = Recycle
         VFS Object = Recycle


Recycle:repository =. deleted/%u
Recycle:keeptree = Yes
Recycle:versions = Yes
Recycle:maxsixe = 0
Recycle:exclude = *.tmp|*.mp3
Recycle:noversions = *.doc

Restart Service

/ETC/INIT.D/SMBD restart


The recycle* representative configures a deleted directory, which can be selected


4. Test connection


Sometimes the first connection fails under Windows, and even if the password is correct later, it needs to be disconnected and re-accessed.


NET use \\192.168.0.198\IPC$/del

NET use */del

No related posts.

On other client access

650) this.width=650; "style=" float:left; "src=" Http://s3.51cto.com/wyfs02/M01/53/C3/wKiom1RvBjKAm8AvAAHd_ Jl5ta0733.jpg "title=" 1.png "alt=" wkiom1rvbjkam8avaahd_jl5ta0733.jpg "/>650" this.width=650; "style=" float:left; " Src= "Http://s3.51cto.com/wyfs02/M01/53/C2/wKioL1RvBl_zx3sTAAGmyEZfm0g259.jpg" title= "Sogou 20141121172945.png" alt= " Wkiol1rvbl_zx3staagmyezfm0g259.jpg "/>

This article is from the "World" blog, make sure to keep this source http://xiajie.blog.51cto.com/6044823/1580985

Open Samba in Windows share under Ubuntu

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.