An Entrepreneur, Coach, IT Consultant, Strategic Adviser, and a Traveler craving to explore and contribute to forming a better society.

Friday, February 15, 2008

Samba - Installation & Configuration

No comments :


Keyword:  Samba, Linux, Ubuntu, Redhat, Fedora, Samba, Installation, SMBD, NMBD, Service, Configuration, Samba Installation & Configuration

Samba: Samba is an easy to install and use tool. Using Samba, you can setup network shares for chosen Unix directories, so that these shall appear to Microsoft Windows users as normal Windows folders accessible through the network.

















The following Installation Manual to guide Samba installation & configuration.


Installing & Configuring Samba Package




Step 1: Untar the samba source package.

Step 2: Execute "./configure".

Step 3: Execute "make".

Step 4: Execute "make install". This command will create a live package in "/usr/local/samba"

Step 5: create a file "/usr/local/samba/smb" and paste the following contents
#!/bin/sh 
/usr/local/samba/sbin/smbd -D 
/usr/local/samba/sbin/winbindd -D
/usr/local/samba/sbin/nmbd -D

Step 5A: Execute "chmod a+x /usr/local/samba/smb" to give appropriate permissions to the file.

Step 5B: Execute "/usr/local/samba/smb" to start SMBD & NMBD services.

Step 6: Execute "/usr/local/samba/bin/smbpasswd -a " and enter your desired password

Step 7: Go to any windows client machine and try "\\xxx.xxx.xxx.xxx".

Adding a new Share

Step 1: open "/usr/local/samba/lib/smb.conf" (create a new file, if not exists) and paste the following contents and modify it to your need.

[sharename] 
comment = Testing
path = /path/to/share/foldervalid 
users = user1 user2 user3 usern
public = no
writable = yes
printable = no 
create mask = 0765

Step 2: Execute "/usr/local/samba/smb" to start(restart) SMBD & NMBD services.

Step 3: Go to any windows client machine and try "\\xxx.xxx.xxx.xxx\sharename".



























Enjoy using Samba for your shared drive!! See you in my next posting!

No comments :