LinuxQuestions.org
Visit Jeremy's Blog.
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 10-15-2005, 06:36 PM   #1
futz
Member
 
Registered: Jul 2005
Location: Great White North
Distribution: Fedora4/Ubuntu/Suse/ Mandriva/PCLinuxOS
Posts: 57

Rep: Reputation: 15
Fedora4 and Ubuntu boxes won't Samba


I've got a Fedora 4 box and a Ubuntu box here. No firewalls enabled on either one. They connect through the switch on my router. I've got a printer Samba share on the Fedora box as well as a couple file shares. On the Ubuntu box I've got some file shares.

The Fedora box can see and use the Ubuntu shares, no problems at all. But on the Ubuntu box, the Fedora shares just don't show up. I -think- it's seeing the printer, but no test page prints when I try.

Any suggestions? I'm somewhat of a newb, but not a total beginner, so hit me.

EDIT: Just turned on the big Windows XP box that's on this network and both Linux boxes see it fine too, so I'm doing something right. Hmm... The Windoze box can see the Fedora box, but is unable to access it.

EDIT2: Here's another hint, maybe: Windows shows the Fedora box as "Samba Server (Localhost)", but shows the Ubuntu box as "ubuntu server (Samba, Ubuntu) (Ubuntu)" And the Windows error I get when I try to access the Fedora box is "Localhost is not accessible. You might not have permission... blah blah blah... You were not connected because a duplicate name exists on the network... blah blah blah...".

Why does my Ubuntu box show up as "Ubuntu" and the Fedora box show up as "Localhost"??? How can I fix this?

Last edited by futz; 10-15-2005 at 07:28 PM.
 
Old 10-16-2005, 10:45 AM   #2
debianmike
Member
 
Registered: Sep 2005
Posts: 115

Rep: Reputation: 15
post your /etc/samba/smb.conf files
 
Old 10-16-2005, 11:07 AM   #3
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
Do your linux machines have different names?? I mean hostnames. Same applies to the windows machine computer name.
 
Old 10-16-2005, 12:50 PM   #4
issinho
Member
 
Registered: Jun 2005
Location: Bosie, ID
Distribution: Fedora Core 4, Kurumin,BackTrack, Slackware 10.2, IPCop
Posts: 105

Rep: Reputation: 15
I know what's wrong with Fedora!

The thing is that Fedora4 (out of the box) cannot use SELinux and Samba at the same time. For some reason, SELinux on Fedora4 disables funcionality of Samba. You may need to disable it. I don't know much about Ubuntu. I actually stopped using Fedora4 for that reason.

Someone, some time ago, did post something on a fix for Fedora4 and Samba. Look for it in the Forums.
 
Old 10-17-2005, 09:29 PM   #5
futz
Member
 
Registered: Jul 2005
Location: Great White North
Distribution: Fedora4/Ubuntu/Suse/ Mandriva/PCLinuxOS
Posts: 57

Original Poster
Rep: Reputation: 15
Quote:
post your /etc/samba/smb.conf files
Ok, here's my fedora smb.conf file. To keep it short, I deleted all commented sections.

----------------------------------------------------

#======================= Global Settings =====================================
[global]

# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = homer
# netbios name = futz

# server string is the equivalent of the NT Description field
server string = %h server (Samba, Fedora4)

# if you want to automatically load your printer list rather
# than setting them up individually then you'll need this
printcap name = /etc/printcap
load printers = yes

# This option tells cups that the data has already been rasterized
cups options = raw

# this tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/%m.log
# all log information in one file
# log file = /var/log/samba/log.smbd

# Put a capping on the size of the log files (in Kb).
max log size = 50

# The following are needed to allow password changing from Windows to
# update the Linux system password also.
# NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above.
# NOTE2: You do NOT need these to allow workstations to change only
# the encrypted SMB passwords. They allow the Unix password
# to be kept in sync with the SMB password.
; unix password sync = Yes
; passwd program = /usr/bin/passwd %u
; passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*

# Most people will find that this option gives better performance.
# See speed.txt and the manual pages for details
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups. The built-in default for versions 1.9.17 is yes,
# this has been changed in version 1.9.18 to no.
dns proxy = no

#============================ Share Definitions ==============================
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
template shell = /bin/false
winbind use default domain = no
security = share
; encrypt passwords = yes
guest ok = yes
guest account = futz
; encrypt passwords = yes
; guest ok = no
; guest account = nobody
; security = user
; encrypt passwords = yes
; guest ok = no
; guest account = nobody
[homes]
comment = Home Directories
browseable = no
writeable = yes

# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
# Set public = yes to allow user 'guest account' to print
; guest ok = no
; writeable = no
printable = yes

[futz]
path = /home/futz
writeable = yes
browseable = yes
guest ok = yes

[ML-1510]
comment = Laser
path = /dev/usb/lp0
writeable = yes
browseable = yes
guest ok = yes
 
Old 10-17-2005, 09:36 PM   #6
futz
Member
 
Registered: Jul 2005
Location: Great White North
Distribution: Fedora4/Ubuntu/Suse/ Mandriva/PCLinuxOS
Posts: 57

Original Poster
Rep: Reputation: 15
Quote:
Do your linux machines have different names?? I mean hostnames. Same applies to the windows machine computer name.
I don't know where to look for hostnames in Linux. The windoze box definitely has a unique name.


-------------------------------------------------------------------


Quote:
The thing is that Fedora4 (out of the box) cannot use SELinux and Samba at the same time. For some reason, SELinux on Fedora4 disables funcionality of Samba.
I've disabled SELinux just in case. No change. Anyway, Samba was working partly with SE enabled - this Fedora box can see the others. They just can't see the Fedora box.

Also, on a previous install of Fedora 4, I had no trouble getting Samba to work between Fedora and the Windows box, and that was with both firewall and SELinux enabled. Can't imagine what's different this time.
 
Old 10-17-2005, 10:04 PM   #7
futz
Member
 
Registered: Jul 2005
Location: Great White North
Distribution: Fedora4/Ubuntu/Suse/ Mandriva/PCLinuxOS
Posts: 57

Original Poster
Rep: Reputation: 15
Hahaha!! I just discovered that the smb service wasn't started. Checked the box in the list and even restarted just to be sure. Was sure my problems were over. They aren't. No change.
 
Old 10-18-2005, 12:56 AM   #8
futz
Member
 
Registered: Jul 2005
Location: Great White North
Distribution: Fedora4/Ubuntu/Suse/ Mandriva/PCLinuxOS
Posts: 57

Original Poster
Rep: Reputation: 15
I decided to print out the man file for smb.conf on my new printer. Had no idea what I was in for. HOLY CRAP!!! That's a BIG book! Had to refill the paper four times!
 
Old 10-18-2005, 01:41 AM   #9
futz
Member
 
Registered: Jul 2005
Location: Great White North
Distribution: Fedora4/Ubuntu/Suse/ Mandriva/PCLinuxOS
Posts: 57

Original Poster
Rep: Reputation: 15
Oh, fer cryin out loud! Sometime during my tinkering, I got it working, but I don't know what I did to make it happen.

The Ubuntu box can now see and access the Fedora box. The Windows box can now see, but not access, the Fedora box. That should be a simple thing to fix.
 
  


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, NFS and two boxes under Mandriva with a dsl-504t grenier Linux - Networking 7 03-29-2006 07:21 AM
Fedora4+Samba=Major headache issinho Fedora 8 09-24-2005 11:45 AM
samba problem with 2 linux boxes muxman Linux - Software 2 07-10-2005 07:20 PM
Samba, Smbpasswd, and Multiple Linux Boxes soopafresh Linux - Networking 2 08-02-2004 04:17 PM
can't get boxes back on Samba mehesque Linux - Networking 0 04-02-2004 06:14 PM

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

All times are GMT -5. The time now is 10:35 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
Open Source Consulting | Domain Registration