Samba Server

1. Instalasi :

#apt-get install samba

2. Setelah instalasi tambahkan file :

#nano /etc/samba/smb.conf

[global]

 

workgroup = debian

netbios name = etha

security = share

 

[etha]

 

comment = etha

path = /home/etha/

public = yes

read only = yes

write list = yes

valid users = nobody

4. Restart Samba server :

#/etc/init.d/samba restart

5. Pengecekan :

– Pada computer client :

Start > search > computers or people > computer on network > ketik IP server

– Double klik pada icon computer

– Maka akan muncul folder dan file/data pada server

6. Jika ingin computer client bisa sharing folder, tambahkan script pada file smb.conf :

#================= Global Settings ==================#

[global]

  workgroup = etha        —-> nama workgroup yang muncul nantinya

      server string = %h server

   dns proxy = no

   interfaces = 127.0.0.0/8 eth0    —> eth0 merupakan LANcard,bisa diganti menurut medianya

   bind interfaces only = true

   log file = /var/log/samba/log.%m

   max log size = 1000

   syslog = 0

   panic action = /usr/share/samba/panic-action %d

 

###### Authentication #######

   security = user        —> hanya untuk user yang terdaftar. 

   encrypt passwords = true

   passdb backend = tdbsam

   obey pam restrictions = yes

   passwd program = /usr/bin/passwd %u

   passwd chat = *EntersnewsUNIXspassword:* %nn *RetypesnewsUNIXspassword:* %nn *passwordsupdatedssuccessfully* .

 

#================== Share Definitions ==================#

[data]                —> menentukan nama filesharing

    path = /media/emily/        —> path tempat folder dishare

    guest ol = no          —> akses guest ditolak, untuk menghidupkan ganti dengan yes

  browseable = yes        —> bisa dibrowsing

  read-only = no        —> read-only memiliki opsi yes atau no

    valid-users = etha, root    —-> list user yang memiliki akses

  writeable = yes        —> bisa ditulis.

  create mask = 700        —-> hak membuat file 

    directory mask = 700    —-> hak membuat direktori        

 

[my data]

    path = /media/

    guest ol = yes

    browsable = yes

    read-only = no

    writeable = yes

    valid users = etha,root

 

[printers]

   comment = All Printers

   browseable = no

   path = /var/spool/samba

   printable = yes

   public = no

   writable = no

   create mode = 0700

 

# Sharing Printer Windows clients look for this share name as a source of downloadable

[print$]

   comment = Printer Drivers

   path = /var/lib/samba/printers

   browseable = yes

   read only = yes

   writable = yes

   guest ok = no        —-> guest dilarang masuk

   write list = root, @ntadmin

 

# Sharing CD-ROM with others.

[cdrom]

   comment = Samba server’s CD-ROM

   writable = no

   locking = no

   path = /cdrom

   public = yes        —-> public berarti bebas dipakai oleh siapa saja

7. Pengecekan :

– Pada computer client :

Start > search > computers or people > computer on network > ketik IP server

– Double klik pada icon computer

– Maka akan muncul folder dan file/data pada server

– Coba buat folder baru

– Jika bisa membuat folder baru. Maka Samba server berhasil. ^_^

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

%d bloggers like this: