본문 바로가기

OS/Linux

CentOS 7 samba 설치.

# selinuxenabled && echo enabled || echo disabled

enabled
# vi /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted
# vi /etc/samba/smb.conf
# ----------------------- Standalone Server Options ------------------------
#
# Scurity can be set to user, share(deprecated) or server(deprecated)
#
# Backend to store user information in. New installations should
# use either tdbsam or ldapsam. smbpasswd is available for backwards
# compatibility. tdbsam requires no further configuration.

        security = user 
        passdb backend = tdbsam
# mkdir -p /home/sambashares/tecmintusers
# chown -R root:users /home/sambashares/tecmintusers
# chmod -R 775 /home/sambashares/tecmintusers
[tecmintusers]
  comment = All Users
  path = /home/sambashares/tecmintusers
  valid users = @users
  force group = users
  create mask = 0660
  directory mask = 0771
  writable = yes
# chkconfig --levels 235 smb on

# service smb restart

# useradd tecmint -m -G users
# passwd tecmint
# smbpasswd -a tecmint

# reboot


'OS > Linux' 카테고리의 다른 글

samba mount  (0) 2014.08.14
CentOS7 ntp 설치.  (0) 2014.07.28
CentOS NTFS 마운트 mount: unknown filesystem type 'ntfs'  (0) 2014.07.27
CentOS7 ifconfig 명령어 실행안될때. ifconfig 설치.  (0) 2014.07.25
CentOS 7 설치 사용기.  (0) 2014.07.25