Linux and Windows Shared File SAMBA-Linux Enterprise Application-Linux server application information. For more information, see. A) Configure/etc/samba/smb. conf first.
Cat/etc/samba/smb. conf < [Global]
Workgroup = linuxgroup
Server string = linux-smb
Dos charset = cp936
Unix charset = utf8
Hosts allow = 192.168.1. # IP address segment of the allowed connection. Note the following:
Log file =/var/log/samba/% m. log
Max log size = 50
Socket options = TCP_NODELAY
Security = user
Encrypt passwords = yes
Smb passwd file =/etc/samba/smbpasswd
Username map =/etc/samba/smbusers
Dns proxy = no
B) Create an smbpasswd file and add a user
Cat/etc/passwd | mksmbpasswd. awk>/etc/samba/smbpasswd
Smbpasswd-AE $ USER
The mksmbpasswd. awk script is in a directory of the samba source code package. $ USER indicates a USER name, which is used to log on to the SAMBA server with the USER name and password.
C) Connection
To access the SAMBA server in Windows, you only need to add a connection to the network neighbor. Enter an address similar to \ 192.168.1.1 \ share when entering the address.
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