October 5, 2009

Sharing On LAN Using Samba

1. Install Samba.

http://www.debuntu.org/guest-file-sharing-with-samba

But a few additional changes may be required.

2. Open the file smb.conf.

varsha@varsha-laptop:~$ sudo gedit /etc/samba/smb.conf

3. In the [global] section, add the following line.

netbios name = 'name'
workgroup = 'workgroup'
usershare owner only = false

Rename your workgroup according to your Windows settings, and 'name' identifies you on the network.

Under [MyFiles],

force user = 'name'
force group = 'name'

Choose the 'name' carefully.

4. Then right-click any directory you want to share and select Sharing Options. Then check Share this folder, give an appropriate name to it, and click Create Share.

Notice that you get a small icon near the shared directory.

Hope it works for you!