cmdref.net - Command Reference

This site is command references for system engineers.

User Tools

Site Tools


Top     SiteMap

Sidebar

Top     SiteMap








Etc


Reference











.

middleware:file:samba:index.html



Middleware

Samba

Preparation

Check SELinux

# getenforce
Enforcing              <- enable SELinux

# setenforce 0         <- disable SELinux

# getenforce
Permissive             <- disable SELinux
# vi /etc/sysconfig/selinux
#SELINUX=enforcing
SELINUX=disabled


Configuration

/etc/samba/smb.conf

Any Permit

Before samba3.6

[global]
    dos charset = CP932         # Windows Client's character(ex for Japanese)
    unix charset = UTF-8        # Linux Clinet's character
    display charset = UTF-8     # Server's character

    security = share

[share]
    path = /home/samba/share
    guest ok = Yes
    guest only = Yes
    writable = yes
    create mode = 0777
    directory mode = 0777
    share modes = yes

[share_www]
    path = /var/www/html/share
    guest ok = Yes
    guest only = Yes
    writable = yes
    create mode = 0777
    directory mode = 0777
    share modes = yes

After samba3.6

[global]
    security = user
    passdb backend = tdbsam

    map to guest = Bad User

[share]
    path = /home/share
    writable = yes
    guest ok = yes



middleware/file/samba/index.html.txt ยท Last modified: 2017/05/07 by admin