Home > docs, freebsd, install, samba, Unix Variant > Install samba 3.x on FreeBSD 7.2

Install samba 3.x on FreeBSD 7.2


Install samba 3.x on FreeBSD 7.2. Bisa silahkan juga di cobain d FreeBSD 8 😛 ..

FreeBSD

mariii…

1. Install

 # cd /usr/ports/net/samba3
 # make install clean
 

2. konfigurasi

 # cp /usr/local/etc/smb.conf.default /usr/local/etc/smb.conf
 

Issue:

1. Setiap user login dengan username dan password.
2. Setiap user dapat sharing file dengan user lainnya.
3. Ada sebuah folder yg hanya bisa ditulis/write oleh user tertentu (misal user1)

configure:

a. Isi konfigurasi smb.conf seperti dibawah ini:

vi /usr/local/etc/smb.conf
 
#=======  Global Settings  ===========
[global]

   unix extensions = no
   workgroup = MSHOME
   server string = samba
   
   ## issue no 1
   security = user
   log file = /var/log/samba/log-%m.log
   max log size = 50
   dns proxy = no


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

[homes]
   comment = Home Directories for %u on %h
   browseable = no
   writable = yes
   path = /usr/home/%u/Docs
   valid users = %S

## issue no 2
[public]
   comment = %h shared Public Stuff
   path = /usr/home/samba/public
   force directory mode = 1777
   force create mode = 1777
   force group = nobody
   force user = nobody
   public = yes
   writable = yes
   read only = no

## issue nomor 3
[software]
   comment = %h shared Software
   path = /usr/home/samba/software
   read only = yes
   write list = user1
   create mask = 0664
   directory mask = 0775
 

b. lalu bikin user misalnya user1 dan user2 , dan user samba

 adduser -v
 

c. Bikin folder Docs didalam directory /home/user1 dan /home/user2

d. jgn lupa chown dan group nya. n pastikan perm

owner:

 chown user1 public
 chown user2 public
 

group:

 chgroup wheel public
 chgroup wheel public
 

e. bkin dir public (issue no 1) dan software (issue no 3) di home samba untuk sharing antar user

 mkdir /home/samba/public
 

f. beri perm 777 untuk public dan 755 untuk software

 chmod 777 /home/samba/public
 chmod 755 /home/samba/software
 

g. klo uda set password user untuk samba nya:

 smbpasswd -a user1
 
 smbpasswd -a user2
 

4. lalu jalankan smba nya

/usr/local/etc/rc.d/samba start
 

5. Testing
n cek \\ip.kamu 🙂

semoga bermanfaat 🙂

Referensi:
1. http://www.us-webmasters.com/FreeBSD/Install/Samba/

Advertisements
  1. December 15, 2009 at 7:53 pm

    ela elah dab, kun saiki nengdi ae, ratau OL ngopo rek, mbojo ae

    :))

    • December 27, 2009 at 8:18 am

      pie suro ??? ra neng ndi2… isih neng kene koq .. 😛

  2. rangga
    May 15, 2010 at 1:52 pm

    om sewaktu adduser -v koq ga di jelasin langkah2nya? nubi neh om tolong dong di jelasin lebih detail lagi, trus ada %u, %m, %S itu apa ya fungsinya

    • May 15, 2010 at 10:58 pm

      %u = user shell / pam auth
      %m = nama mesin
      %S = valid users

      silahkan merujuk ke link referensi utk detail adduser -v dan yang lainnya ..

  1. No trackbacks yet.

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