SAMBA 구축하기
- Server : Linux (10.0.1.55)
- Client : Windows
1.
$ yum install samba*
$ rpm -qa | grep samba
-------------------------------------------------------------------------
samba-client-4.15.5-5.el8.x86_64
samba-winexe-4.15.5-5.el8.x86_64
samba-winbind-modules-4.15.5-5.el8.x86_64
samba-krb5-printing-4.15.5-5.el8.x86_64
samba-client-libs-4.15.5-5.el8.x86_64
samba-4.15.5-5.el8.x86_64
samba-winbind-4.15.5-5.el8.x86_64
samba-vfs-iouring-4.15.5-5.el8.x86_64
samba-winbind-clients-4.15.5-5.el8.x86_64
samba-common-libs-4.15.5-5.el8.x86_64
samba-libs-4.15.5-5.el8.x86_64
python3-samba-4.15.5-5.el8.x86_64
samba-test-libs-4.15.5-5.el8.x86_64
samba-test-4.15.5-5.el8.x86_64
samba-winbind-krb5-locator-4.15.5-5.el8.x86_64
samba-common-tools-4.15.5-5.el8.x86_64
samba-pidl-4.15.5-5.el8.noarch
samba-common-4.15.5-5.el8.noarch
-------------------------------------------------------------------------
$ systemctl stop firewalld
$ systemctl disable firewalld
$ setenforce 0
$ getenforce
$ vi /etc/selinux/config
{
SELINUX=disabled
}
2.
$ useradd sambauser
$ smbpasswd -a sambauser (pw : smadmin)
$ mkdir /samba
$ chmod 777 /samba
$ vi /etc/samba/smb.conf
---------------------------------------------------
[share]
path = /samba
browseable = yes
writable = yes
guest ok = yes
read only = no
create mask = 0777
directory mask = 0777
---------------------------------------------------
$ systemctl start smb
$ systemctl enable smb
$ systemctl start nmb
$ systemctl enable nmb
$ systemctl status smb
$ systemctl status nmb
3.
Client 접속 확인
Windows > \\10.0.1.55 > 자격증명 : sambauser / smadmin
4.
$ yum install httpd
$ systemctl stop firewalld
$ systemctl disable firewalld
$ systemctl start httpd
$ systemctl enable httpd
$ mkdir /var/www/html/release
$ chmod 777 release
http://<IP>/release (파일 확인)