LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-15-2001, 01:30 PM   #1
Danobri
LQ Newbie
 
Registered: Jun 2001
Location: Madison, WI
Distribution: Red Hat 7.1
Posts: 19

Rep: Reputation: 0
Question samba


Can anyone tell me how to determine if samba is already installed on my system? And if I find that it is not installed, how I can install it? I am running Red Hat 7.1

Thanks.
 
Old 07-15-2001, 06:55 PM   #2
Breezwell
Member
 
Registered: Apr 2001
Location: Chicago
Distribution: Gentoo 1.4
Posts: 214

Rep: Reputation: 30
Try this command while running as root:

find / -name 'smbd'

If you find anything relating to this daemon, you probably have Samba installed.

Also look in /etc and see if you have a file called smb.conf

I don't know Red Hat very well, but my Mandrake distro keeps my Samba config file in /etc.


Hope this helps.....
 
Old 07-16-2001, 02:14 AM   #3
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
rpm -qa | grep samba
 
Old 07-16-2001, 02:53 PM   #4
Danobri
LQ Newbie
 
Registered: Jun 2001
Location: Madison, WI
Distribution: Red Hat 7.1
Posts: 19

Original Poster
Rep: Reputation: 0
Smile

KevinJ,

Thanks once again for your help. After typing in rpm -qa | grep samba, I got the following reply:

samba-2.0.7-36
samba-common-2.0.7-36
samba-client-2.0.7-36

So apparently samba is already installed. Thanks!
 
Old 07-16-2001, 03:01 PM   #5
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
Now, as root, type:

service smb status

to see if its running. You can edit the /etc/samba/smb.conf file to your needs and issue:

service smb restart

to make the changes take effect.
 
Old 07-16-2001, 03:35 PM   #6
Danobri
LQ Newbie
 
Registered: Jun 2001
Location: Madison, WI
Distribution: Red Hat 7.1
Posts: 19

Original Poster
Rep: Reputation: 0
Question

Kevin,

When I type in service smb status, I get a "bash: service: command not found" error.

Why would this be? I am logged in as root.

Thanks
 
Old 07-16-2001, 03:53 PM   #7
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
I bet you "su"d to root. You need to "su -". That will execute root's profile.

The problem is when you just "su" you don't get the path variable for root. So you would have to type it out.

/sbin/service smb status
 
Old 07-16-2001, 04:34 PM   #8
Danobri
LQ Newbie
 
Registered: Jun 2001
Location: Madison, WI
Distribution: Red Hat 7.1
Posts: 19

Original Poster
Rep: Reputation: 0
Kevin,

You were right about logging in with the su - command. That is not something I knew about.

After performing the service smb restart command I am now finally able to see the linux box when I open Network Neighborhood! However, when I click on the computer ("Localhost"), Windows gives me an error message:

\\Localhost is not accessible

The computer or sharename could not be found, make sure you typed it correctly.

What am I doing wrong?

Thank you so much for the help. I've been blindly fooling around with this for several weeks, and it's great to finally see the linux machine showing up in Network Neighborhood.

Oh- 2 other questions:

1- How can I change the name of the linux box (to something other than localhost)? Or is it necessary for me to keep that name?

2- How will I ultimately access files on the Windows computer from the linux machine? Is there anything analogous to Network Neighborhood in linux?

Thanks
 
Old 07-17-2001, 01:44 AM   #9
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
Do you have anything shared? You would have accomplished that by editing the smb.conf file.
And are you logged into Windows with a valid Linux username and password? Not root, but some other user.

Also, change the name using the 'hostname' command:

hostname someotherhostname


For Linux Network Neighborhood:
http://www.bnro.de/~schmidjo/
 
Old 07-17-2001, 07:22 AM   #10
trusouthrnplaya
Member
 
Registered: Jun 2001
Location: (Cashville) Nashville, TN
Distribution: CentOS 4.0, Slackware 10.2,
Posts: 223

Rep: Reputation: 30
KevinJ,

would these same commands work in Mandrake 8.0 also? I am also trying to hook up my samba server.
 
Old 07-17-2001, 08:51 AM   #11
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
I believe so.
 
Old 07-17-2001, 09:00 AM   #12
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Quote:
Originally posted by KevinJ
Also, change the name using the 'hostname' command:
hostname someotherhostname
You might want to update /etc/hosts and c:\windows\hosts to reflect the name change too. And you'll need to enable clear text password on the Windows side or things, there is a .reg file to do this incase you haven't found it already.

Also is just using 'hostname' persistant, on Slackware using the hostname command will only work for the current session, if you reboot you'll loose the change. To make it persistant you need to edit /etc/HOSTNAME - dunno what the story will be on Redhat

cheers

Jamie...
 
Old 07-17-2001, 09:37 AM   #13
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
I am not sure if the hostname command permanently sets the hostname or not. Try it and see. I can't try it right now, or I would give you definitive answer.

You will definitely want to update the hosts file on the Windows box, but I think the /etc/hosts on the Linux box is optional. It can't hurt.

As far as passwords go.. you can go either route. You can enable plain text on the Win9x box or you can enable encryption on the Linux box. I usually go the plain text route myself, but that will depend on your security needs.
 
Old 07-17-2001, 01:31 PM   #14
Danobri
LQ Newbie
 
Registered: Jun 2001
Location: Madison, WI
Distribution: Red Hat 7.1
Posts: 19

Original Poster
Rep: Reputation: 0
How exactly do you enable plain text on the Win 9x box?
 
Old 07-17-2001, 02:42 PM   #15
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
Read this:

/usr/share/doc/samba-2.0.7/docs/textdocs/Win95.txt
 
  


Reply



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
Samba/Cups print sharing problems (/var/spool/samba files) Gates1026 Linux - General 9 06-23-2013 01:33 AM
Samba - Connecting from WinXP Pro to Samba running on Debian critical Linux - Networking 1 02-03-2005 09:36 AM
I need the content from thegoldenear.org/toolbox/unices/samba/samba-setup.html rtg2001 Linux - Networking 1 08-05-2004 05:54 PM
Samba: Authenticate Linux-Clients in Samba Domain & Mount mule Linux - Software 0 12-10-2003 01:21 AM
when i restart SAMBA,it says:stop samba failed,start SAMBA OK! whepin Linux - Networking 3 12-26-2001 05:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:29 PM.

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
Open Source Consulting | Domain Registration