Showing posts with label samba. Show all posts
Showing posts with label samba. Show all posts

Monday, 2 September 2013

Package to install :
  • samba
  • samba-common

Steps :
  • Install package : sudo apt-get install samba samba-common
  • Create user : sudo adduser [username]
  • User activation : sudo smbpasswd -a [username]
  • Samba file configuration modif : sudo nano /etc/samba/smb.conf
  • Restart services : sudo restart smbd&&sudo restard nmbd
Note 
change and add smb.conf (sesuai kebutuhan) :
[Global]
#===# Authentification ===#
  • Security = user 
  • ;map to guest = bad user
#=== Share definition ===#
 [name of share/profile_1]
 comment = File server to profile_1
 path = /home/profile_1
 valid users = profile_1
 guest ok = no
 browseable = no
 read only = no
 create mask = 0700
 directory mask = 0700

 [name of share/profile_2]
 comment = File server to profile_2
 path = /home/profile_2
 valid users = profile_2
 guest ok = no
 browseable = no
 read only = no
 create mask = 0700
 directory mask = 0700

Friday, 17 December 2010

langkah buat folder sharing (untuk bank data) di ubuntu lucid server :
1. install samba
$sudo apt-get install samba

2. buat folder yg akan dishare :
$sudo mkdir /home/share

3. buat permission untuk read write :
$sudo chmod 0777 -R /home/share

4. edit konfigurasi samba agar akses folder bisa share
- buka file konfigurasi :
$sudo nano /etc/samba/smb.conf

- edit / ubah line (hapus tanda # didepan line)
security = user
menjadi
security = share
guest account = nobody

- tambah konfigurasi untuk share (boleh diletakkan di bagian paling bawah dari file smb.conf) :
[Share]
       comment = File server samba
       path = /home/share
       read only = no
       create mask = 0777
       directory mask = 0777
       guest ok = yes
       browseable = yes

- simpan file konfigurasi

5. test konfigurasi :
$testparm

6. restart samba
$sudo /etc/init.d/smbd restart


Blog Archive

Breaking News

Popular Posts