LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-16-2010, 11:17 PM   #1
sumanch
LQ Newbie
 
Registered: Jan 2010
Posts: 24

Rep: Reputation: 16
How to check if samba is installed or not


Hi ,
I want to use samba in one of my linux machines so that I can share my directories in linux in windows machine . How do I check in samba is installed or not . I checked in /etc/init.d directory , I expected smbd executables to be there . But I can't find it there . Does it mean that samba in not intstalled there . Please let me know .
 
Old 02-16-2010, 11:22 PM   #2
worm5252
Member
 
Registered: Oct 2004
Location: Atlanta
Distribution: CentOS, RHEL, HP-UX, OS X
Posts: 567

Rep: Reputation: 57
There are several ways you can check to see if samba is installed.

The easiest way in my opinion is to see if samaba configuration file exist.
Code:
jared@S-FSXX01:~$ ls /etc/samba/
gdbcommands  smb.conf  smb.conf.bak
jared@S-FSXX01:~$
If you have those config files then chances are it is installed.
 
1 members found this post helpful.
Old 02-16-2010, 11:26 PM   #3
sumanch
LQ Newbie
 
Registered: Jan 2010
Posts: 24

Original Poster
Rep: Reputation: 16
Yes . The files are there . I also did rpm -qa which is showing the following

samba-common-3.0.33-0.18.el4_8.1
samba-client-3.0.33-0.18.el4_8.1
samba-3.0.33-0.18.el4_8.1

I feel samba is installed . But how do I start the process . I did ps -ef | grep smbd .
I did not see any result . /etc/init.d does not contain smbd . What is the location for smbd executable .
 
1 members found this post helpful.
Old 02-16-2010, 11:30 PM   #4
worm5252
Member
 
Registered: Oct 2004
Location: Atlanta
Distribution: CentOS, RHEL, HP-UX, OS X
Posts: 567

Rep: Reputation: 57
Samba is indeed installed if rpm -qa returned something.

Depending on the distribution you have you should be able to start samba by 1 of the following ways
Code:
/etc/init.d/samba start
or
Code:
service samba start
 
1 members found this post helpful.
Old 02-17-2010, 02:23 AM   #5
sohail0399
Member
 
Registered: Oct 2008
Location: Pakistan, Islamabad
Distribution: CentOS, Fedora, Solaris
Posts: 154

Rep: Reputation: 23
at CentOS i use this command to start samba service:

through root or admin rights user

/etc/rc.d/init.d/smb start
 
1 members found this post helpful.
Old 02-17-2010, 03:18 AM   #6
sumanch
LQ Newbie
 
Registered: Jan 2010
Posts: 24

Original Poster
Rep: Reputation: 16
Hi I started it using /usr/sbin/smbd . Thanks .
 
1 members found this post helpful.
Old 02-17-2010, 04:59 PM   #7
Carsto
Member
 
Registered: Aug 2009
Posts: 97

Rep: Reputation: 17
Thanks, solved an issue I was searching for days.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
To check installed applications ? kapilbajpai88 Linux - Newbie 12 12-19-2008 01:54 AM
How to check what libraries are installed? Palamides Linux - Software 3 01-06-2005 07:28 PM
How do I check what wm I have installed. mlsbraves *BSD 12 12-08-2004 10:25 PM
How do I check if Apache is installed? jmg1894 Linux - Newbie 4 07-15-2004 02:23 PM
How to check that JDK Installed? sikandar Linux - Software 2 09-09-2003 12:44 AM


All times are GMT -5. The time now is 01:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration