Samba configuration in CentOS

Source: Internet
Author: User
Samba configuration in CentOS-Linux Enterprise Application-Linux server application information. For details, refer to the following section. When enabling samba in centos, you must disable iptables and SELINUX. When I used it in centos, I found a lot of information on the Internet to read articles about samba configuration, but they all opened up the differences. I can see shared files in linux, however, I did not have the write permission. For this reason, I was depressed for a long time, but I did not know why, but after I reinstalled the machine, my master and I checked samba configurations together, But samba has nothing to do.

In particular, I just can't get angry with me. I finally found that it would be nice to turn off the SELINUX function!

SELINUX is also a security mechanism in centos (other versions of RADHAT have never been used, so we can just turn it off.

#====================================== Global Settings ==================== ======================================
[Global]

Dos charset = GB2312
Unix charset = GB2312
Display charset = GB2312
# ----------------------- Netwrok Related Options -------------------------
Workgroup = MYGROUP
Server string = Samba Server1 (freesense)

Netbios name = Centos5-Samba1
Hosts allow= 127. 192.168.1.

# --------------------------- Logging Options -----------------------------
Log file =/var/log/samba/% m. log
Max log size = 50

# ----------------------- Standalone Server Options ------------------------
Security = user
Encrypt passwords = Yes
Smb passwd file =/etc/samba/smbpasswd
# Passdb backend = tdbsam
# --------------------------- Filesystem Options ---------------------------
Socket options = TCP_NODELAY SO_RCVBUF = 8192 SO_SNDBUF = 8192
Dns proxy = no
Template shell =/bin/false
Winbind use default domain = no
#============================ Share Definitions ========== ==================================

[Homes]
Comment = Home Directories
Browseable = no
Writable = yes
Valid users = % S
Create mode = 0664
Directory mode = 0775
; Valid users = MYDOMAIN \ % S

; [Printers]
; Comment = All Printers
; Path =/var/spool/samba
; Browseable = no
; Guest OK = no
; Writable = no
; Printable = yes
######################################## #######

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.