Campus, Linux, Networking, Opensource, Server

Samba Server Centos

Yang digunakan centos 6.3 dengan ip 192.168.56.101

Cek SELinux enble / disable dengan command

…………………………………………………………………….

# selinuxenabled && echo enabled || echo disabled

enabled

…………………………………………………………………….

Kalo SELinux nya enable, harus di disable ‘in dengan command

.................................
# nano /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
................................
Selanjut nya restart system dengan  command
...................
#init 6
...................
Install Samba kalo belom ada di centos lo
......................
# yum install samba samba-common cups-libs samba-client
......................
Next Config Samba
......................
# vi /etc/samba/smb.conf
......................
Cari bagian ini lalu sesuaikan.
..............................
# ----------------------- 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
................................
Lalu masukkan command berikut ini pada bagian paling bawah smb.conf
................................
[samba share folder]
  comment = All Users
  path = /path/yang/akan/dishare/
  valid users = @users
  force group = users
  create mask = 0660
  directory mask = 0771
  writable = yes
.................................
Restart samba
....................................
#Service smb restart
....................................
Selanjut nya Membuat User Samba
....................................
#useradd ibolobolo-m -G users
#smbpasswd -a 123456
....................Setting sisi Centos DONE.........................
Buka windows explores ketik pada address bar : \\192.168.56.101\user
centosSMB

Standard

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s