Install samba: sudoapt-getinstallsambasudoapt-getinstallsmbfs. Create this folder sudomkdir/var/samba_share_datasudochmod766/var/samba_share_data and edit smb. conf allows network users to access sudovi/etc/samba/smb. search for this line of text in conf; security = install samba:
Sudo apt-get install samba
Sudo apt-get install smbfs
Create this folder
Sudo mkdir/var/samba_assist_data
Sudo chmod 766/var/samba_assist_data
Edit smb. conf to allow network users to access
Sudo vi/etc/samba/smb. conf
Search for this line of text
; Security = user
Replace the following rows
Security = user
Username map =/etc/samba/smbusers
Add shared information to the configuration file. Assume that samba_user is your user name.
[Cmd_folder]
Comment = Shared Folder
Path =/var/samba_share_data
Public = yes
Writable = yes
Valid users = samba_user
Create mask = 0700
Directory mask = 0700
Force user = samba_user
Force group = samba_user
Available = yes
Browseable = yes
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