Linux Samba usage record

Source: Internet
Author: User
security = userusername map = /etc/samba/smbusers

Record:

Step 1 install samba

Apt-Get install Samba smbfs sbmclient

Step 2. Backup File

CP/etc/samba/smb. conf/etc/samba/smb.com. Bak

Step.3 configuration file

Gedit/etc/samba/smb. conf

Set the following

security = userusername map = /etc/samba/smbusers

Substitution

; security = user

Add at last

[Share]comment = Shared Folder with username and passwordpath = /home/sharepublic = yeswritable = yesvalid users = aUserNamecreate mask = 0700directory mask = 0700force user = nobodyforce group = nogroupavailable = yesbrowseable = yes

Next, change the [Global] configuration

workgroup = WORKGROUPdisplay charset = UTF-8unix charset = UTF-8dos charset = cp936

Step 4 Add a new user (if necessary)

Useradd ausername

Add Password


Step. 5 open \ 192.168.1.100 \ share in the window.


~ Article end ~


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.