Samba Server Configuration
Samba Server Video-
Samba History.
The story goes something like this:Linus Torvalds, the creator of the Linux Kernel, was visiting his friend Andrew Tridgell, the creator of the Samba suite. They were walking through the Zoo in Canberra when, without warning, a huge flock of vampire attack penguins dove out of the sky and tried to carry Linus away. Fortunately, Andrew had an umbrella. Still, one of the birds was able to nip Linus’ hand with its fanged beak. Rumor has it that on moonlit nights Linus still runs out into the darkness and jumps, stark naked, into icy water. Of course, he’s Finnish and may always have done this. In any case, this is why the Penguin is the Linux Mascot.Andrew says that the story has changed a bit since the actual event.
What is Samba Server ?
Ans- Samba is software that can be run on a platform other than Microsoft Windows, for example, UNIX, Linux, IBM System 390, OpenVMS, and other operating systems. Samba uses the TCP/IP protocol that is installed on the host server.
or, In simple words, it is a platform that makes window machine to share unix file and folder from unix machine.
netbios-ns 137/tcp # NETBIOS Name Service
netbios-ns 137/udp
netbios-dgm 138/tcp # NETBIOS Datagram Service
netbios-dgm 138/udp
netbios-ssn 139/tcp # NETBIOS session service
netbios-ssn 139/udp
microsoft-ds uses 445 port (TCP/UDP) (Microsoft Directory Service)
What Samba Does ?
Samba consists of two key programs, plus a bunch of other stuff that we’ll get to later. The two key programs are smbd and nmbd. Their job is to implement the four basic modern-day CIFS services, which are:
- File & print services
- Authentication and Authorization
- Name resolution
- Service announcement (browsing)
How to configure Samba Server ?
1. To configure samba server we need to check the RPM package of Samba, through command
root@…]# rpm -qa | grep samba*
It will search and show all samba packages.
2. If samba is not installed than we can install it through two way.
a. first insert Linux CD(CentOs, Redhat..) than mount and browse the RPM package. Than run command
root@…]# rpm -ivh samba*
b. Otherwise run command below command to install it through internet.
root@…]# yum install samba*
3. We should configure Samba to start at boot time using the chkconfig command:[root@…]# chkconfig smb on
4. We can start/stop/restart Samba after boot time using the smb initialization script as in the examples below:
[root@…]# service smb start
[root@…]# service smb stop
[root@…]# service smb restart
Sometimes Samba may have an ancillary nmb daemon that also needs to be started. The syntax is the same as that for the smb daemon.
root@…]# service nmb start
root@…]# service nmb stop
root@…]# service nmb restart
5. Samba configuration
root@…]vi /etc/samba/smb.conf
Here we need to create share able folder. After opening smb.conf , we should come in last line with command (Shift+g), than
6. Now we need to add samba user password with command:-
root@…]smbpasswd -a username # username will be exiting one
7. Now come to window machin and type below command in run prompt.
\\ip-address
than it will prompt user id and password. we should put that samba user is and password.
Thanks for visiting this site…………………..Welcome Genowin Technologies.
Happy To Help You ….
All Linux Solution & Training.
Genowin Technologies(www.genowin.com)