Jun 11, 2008

Samba File Server

Now, i re-install one of the server to be pointed as a fileserver, which will stores files from the users here. I installed samba on Ubuntu Hardy Heron server edition

We will concentrate on /etc/samba/smb.conf ( samba configuration file )

The condition that i like to make are :

  1. one public shared folder
  2. some folder which can be access base on that folder password
Base on the above conditions, so :
  • sudo mkdir /home/shared { create a shared folder for public }
  • sudo adduser --home /home/source source {create source user}
  • sudo adduser --home /home/filing filing {create filing user}
  • sudo smbpasswd -a source {smbpasswd for source}
  • sudo smbpasswd -a filing {smbpasswd for filing}
  • sudo nano /etc/samba/smb.conf
below is the content that i adjusted of my smb.conf file;
[global]
workgroup = workgroup_name
netbios name = citserver { this computer name for network }
host allow = 192.168.1.0/24
server string = %h (Ubuntu Samba Server)
security = share
smb passwd file = /etc/bin/smbpasswd
dns proxy = no

[home]
read only = no
browseable = no

[shared]
path = /home/shared/
comment = X Directory
public = yes
read only = no
browseable = yes

don't forget to restart the samba service :==> sudo /etc/init.d/samba restart

Now, you can access samba shares from the clients
For Windows :==> type \\citserver\foldername on explorer bar
For Linux :==> smb://citserver/foldername on nautilus bar

For more and details info :==>
Ubuntu help
Thanks to Mr. Taufan Lubis



No comments: