ABOUT ME

Today
Yesterday
Total
  • SAMBA 구축하기
    Linux 2024. 12. 17. 10:39

    - 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   (파일 확인)

     

     

    'Linux' 카테고리의 다른 글

    DNS 서버 구축  (0) 2024.12.18
    iSCSI Client 설정하기  (0) 2024.12.17
    Stress, Stress-ng 를 활용한 부하테스트  (0) 2024.10.08
    Crontab  (0) 2024.05.17
    파티션 / LVM(논리볼륨) / Mount 설정  (0) 2024.05.17
Designed by Tistory.