Samba server

Not to long ago I came across a problem that started to annoy me : I had to exchange file with my colleagues ( for them to exchange between the they ware using Y!Messenger file transfer utility , but when they needed to send me a file thy couldn’t because gaim/centericq file transfer in not compatible with Y!Mess’es file transfer ) and I needed to find fast a solution. So i decided to setup a file sharing server. The steps were very simple :

1. Installed samba

# cd /usr/ports/net/samba3

# make install clean

2. Edited the config file ( /usr/local/etc/smb.conf ) to look like this :

[global]
workgroup = LAMIT
netbios name = Server
server string = FreeBSD Samba Server
load printers = no
log file = /var/log/log.%m
max log size = 50
security = share
socket options = TCP_NODELAY
dns proxy = no
guest account = dante
guest only = YES
guest ok = YES
interfaces = rl1
bind interfaces only = yes

[Store]
comment = Store space
path = /home/store
read only = no
public = yes

3. Add the following lines in /etc/rc.conf :

samba_enable=”YES”
winbindd_enable=”YES”

4. Stared samba :

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

Everything worked like a charm and all everyone has to do is either open a browser and type \\192.168.1.2 ( the ip address of my rl1 interface ) or map the samba sharing to a drive on his computer. Now when someone needs to hare a file ( proforma invoice , contract , movie :-) , etc with other all he needs to do is upload it and everyone can have it ) .

If you want you can make a much more elaborate file sharing server ( with permissions , acl’s , password authentication and much more ) just RTFM and do it because this only a basic configuration.

Happy sharing.

  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • De.lirio.us
  • Slashdot
  • Technorati
  • YahooMyWeb
  • BlogMemes
  • email
  • Furl
  • LinkedIn
  • Live
  • MySpace
  • SphereIt
  • TwitThis
  • Yahoo! Buzz
  • Socialogs
  • Spurl
  • StumbleUpon
  • Yahoo! Bookmarks
  • Identi.ca
  • PDF
  • RSS
  • Twitter

2 Comments

lexiNovember 12th, 2007 at 10:42 am

Did you ever think of joining a windows active directory ?:)

danteNovember 12th, 2007 at 11:21 am

NO ! :twisted:

Leave a comment

You must be logged in to post a comment.