1. download the latest samba-latest.tar.gzsource code installation package 2.tarzxvfsamba-latest.tar.gz and decompress it to the current folder. 3. enter the configuration script directory for cdsamba-3.5.6/soure3 4 .. /configure -- prefix =/home/xxx/program/samba specifies the samba installation directory (not 1. download the latest samba-latest.tar.gz source code installation package
2. Extract tar zxvf samba-latest.tar.gz to the current folder
3. Enter the configuration script directory for cd samba-3.5.6/sours3.
4../configure -- prefix =/home/xxx/program/samba specifies that the samba program installation directory (not the default) is/home/xxx/program/samba
5. make; make install compile and install
6. cd/home/xxx/program/samba
7. Check the location of the smb. conf file./sbin/smbd-B | grep smb. conf is generally in the lib directory.
8. touch smb. conf; ln-s smb. conf lib/smb. conf create the samba configuration file in the top directory, and create the soft link of the file in the lib directory.
9. vim smb. conf: edit the configuration file and enter the content.
[Global]
Workgroup = samba
Netbios name = xxx
Server string = xxx
Encrypt passwords = yes
Security = user
Client code pages = 950
Guest OK = no
Read only = no
# Create a share directory and configure its access rules and Path
[Share]
Path =/xx
Available = yes
Browseable = yes
Writable = yes
Case sensitive = True
10. sudo./bin/smbpasswd-a xxx: Use the root user to add samba access users, enter the password, and then confirm.
11. Modify/etc/rc. d/rc. local and add the following startup command. Enable the samba Service
/Home/ly/program/samba/sbin/smbd-D
/Home/ly/program/samba/sbin/winbindd-D
/Home/ly/program/samba/sbin/nmbd-D
12. Modify the firewall filtering rules (/etc/sysconfig/iptables requires root permission) so that the firewall does not block windows users' access to samba
Sudo system-config-firewall: On the Trusted Services configuration page, select Linux Samba and Samba Client, and Apply
13 restart the samba Service
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