LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 06-27-2009, 07:18 PM   #1
JonathanWexler
LQ Newbie
 
Registered: Dec 2006
Posts: 28

Rep: Reputation: 15
RedHat 11 - Configuring SAMBA / shares


I am (trying to) install RedHat v11, and am having no luck getting NETBIOS names set up, let alone file sharing with Windows/Linux computers on my network. (I do not think I was entirely insane to try this - a couple of years ago, I got this all working on Fedora 6)

So, what have I done
1) Installed it
2) edited \etc\samba\smb.conf for workgroup name, netbious name
WINS server on, no DNS resolution
3) I can get to the Internet, so I know the router it is connected to is giving it a good IPv4 address (but the router log does not show the NETBIOS name for the unit, which cannot be a good thing)

I can ping to or from the unit to other computers on the network, but the name resolution stuff does not work in either direction.

Looking at Administration ... Services, I do not see an entry for SAMBA, smbd or anything else relevant .... it was there in Fedora 6.


Looking at the smb.conf comments, there is a mention that the SELINUX characteristics for the folder I wish to share needs some "samba-user" notation set, but I do not see any way to set it via the context menu for the folder.

Any help appreciated.

Jonathan
 
Old 06-27-2009, 08:57 PM   #2
armanox
Member
 
Registered: Sep 2005
Location: Baltimore, MD, USA
Distribution: Fedora, Gentoo, Debian, Slackware, IRIX, OS X
Posts: 192

Rep: Reputation: 32
I am going to assume you mean Fedora 11, as there was no Red Hat 11....

Check to make sure that all of the samba packages are installed. Also, the file to start the service should be /etc/init.d/smb - you could try starting it from the command line as root
Code:
# /etc/init.d.smb start
If the samba packages are not all installed (which I don't think Fedora does by default), then that command will fail.
 
Old 06-28-2009, 10:16 AM   #3
JonathanWexler
LQ Newbie
 
Registered: Dec 2006
Posts: 28

Original Poster
Rep: Reputation: 15
better, but not done

Thanks for the advice. yum install samba got me samba installed, which I was able to start but name resolution still fails.

Specifically, the router is not seeing the NETBIOS name when its DHCP server assigns an address.

From the LINUX box, I can
a) access the Internet
b) get name resolution for machines not on the LAN (ping www.yahoo.com works)
c) ping LAN address by IPv4

but I cannot ping names on the LAN

From other computers on the LAN, I can ping the LINUX box by IPv4, but not by NETBIOS name.

Thanks

Jonathan

PS. You are correct, I installed Fedora 11, not RedHat 11
 
Old 06-28-2009, 01:30 PM   #4
arty
Member
 
Registered: Nov 2008
Posts: 66

Rep: Reputation: 17
if smbd is up and running try to connect to it
forget the name and try the ip
on client"s side do: START,RUN,type: \\ip_of_smb_server
if it doesn't work you have to check connectivity with the linux machine
try to ping it's ip
if you can ping double check if smbd is running
if you are sure you see the process running
check if it's listening on the correct port
try "netstat -ln | grep 445"
 
Old 06-28-2009, 07:15 PM   #5
JonathanWexler
LQ Newbie
 
Registered: Dec 2006
Posts: 28

Original Poster
Rep: Reputation: 15
What is the procedure for "connecting to smbd"

the UI for Administration ... Services shows (for each of smd and nbd) "Enabled" and "Running" - but,
1) the Administration ... Services ... does not show "Samba' as an option (as it does in Fedora 6)
ii) the System Monitor ... Processes tab does not show either smbd or nmbd as running processes (should it?)

the NSTAT command exits after a single line which reads

tcp 0 0 :::445 :::% LISTEN

Thanks
Jonathan
 
Old 06-30-2009, 07:56 AM   #6
arty
Member
 
Registered: Nov 2008
Posts: 66

Rep: Reputation: 17
open an explorer windows within windows and type at address bar \\ip_of_smb_server
 
Old 06-30-2009, 10:02 PM   #7
JonathanWexler
LQ Newbie
 
Registered: Dec 2006
Posts: 28

Original Poster
Rep: Reputation: 15
Okay, I tried //192.168.0.109 in Firefox and got "file not found"

On a Windows box on the LAN I tried (on both Windows Explorer and Internet Explorer) //192.168.0.109 //192.168.0.109:445 \\192.168.0.109
and \\192.168.0.109:445 - all of these produced errors sounding like "can't connect".

Looking at other posts, I tried

chkconfig --list
which showed both smb and nmb are "on" at levels 2345 (whatever that
means)

smbclient -L localhost returns "'client lanman auth' is disabled"
 
  


Reply

Tags
redhat, samba


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
can not access samba shares from a VIRTUAL samba server using smb4k nass Fedora 0 12-13-2008 04:39 AM
Configuring Public and Secured Samba Shares JonBL Linux - Software 6 03-28-2007 03:43 AM
ip masqed redhat linux 9 cannot browse and trouble configuring printer to samba ronadinihari Linux - Networking 4 02-21-2004 05:57 PM
Linux can mount samba shares but not windows shares bindsocket Linux - Software 1 12-01-2003 05:28 PM
Problems connecting to samba shares from w2k or XP systemafter configuring smb.conf f marvc Linux - Software 0 06-09-2003 07:12 AM


All times are GMT -5. The time now is 09:06 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration