Fedora Linux Support Community & Resources Center
  #1  
Old 14th January 2011, 10:16 PM
ahesham's Avatar
ahesham Offline
Registered User
 
Join Date: Jan 2011
Location: Cairo, Egypt
Posts: 14
linuxfedorafirefox
Samba problem

I've Fedora 14 X86_64 installed on my PC and I'm trying to connect to my other 2 PCs[XP and Win7]. Basically what I need to do is share my printer to these 2 PCs and enable file sharing. I've read through the Samba man pages and wrote my own smb.conf; however, it never works.

When I go to Network, I can't see any shares except 2 things: "ahesham's public files on amr-pc" and "Windows Network" and both of them give errors when trying to open them. Also the other PCs (and another MacBook Pro) can't see this Linux box.

It always worked like a charm in Ubuntu. Is there something that I'm missing?


Quote:
[global]
workgroup = WORKGROUP
netbios name = amr-pc
security = SHARE

printing = cups
printcap name = cups
disable spoolss = Yes
show add printer wizard = No

domain master = yes
local master = yes
preferred master = yes
os level = 65
wins support = yes
name resolve order = host lmhost wins bcast
guest ok = yes
guest account = nobody

[printers]
comment = All Printers
path = /var/spool/samba
guest ok = Yes
printable = Yes
use client driver = Yes
browseable = No

[Windows]
path = /media/Windows
read only = no
; browseable = yes
guest ok = yes

[Programs]
path = /media/Programs
read only = no
; browseable = yes
guest ok = yes

[Fun]
path = /media/Fun
read only = no
; browseable = yes
guest ok = yes

[Work]
path = /media/Work
read only = no
; browseable = yes
guest ok = yes
__________________
Find the Master.
Follow the Master..
Become the Master...

Last edited by ahesham; 14th January 2011 at 10:21 PM.
Reply With Quote
  #2  
Old 14th January 2011, 10:39 PM
jpollard Online
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,103
linuxfedorafirefox
Re: Samba problem

Have you enabled the samba flags in SELinux?
Do you have security alerts?
Reply With Quote
  #3  
Old 14th January 2011, 10:41 PM
ahesham's Avatar
ahesham Offline
Registered User
 
Join Date: Jan 2011
Location: Cairo, Egypt
Posts: 14
macoschrome
Re: Samba problem

Quote:
Originally Posted by jpollard View Post
Have you enabled the samba flags in SELinux?
Do you have security alerts?
I don't have any security alerts; however, I haven't touched SELinux. I just marked samba as trusted in the firewall.
__________________
Find the Master.
Follow the Master..
Become the Master...
Reply With Quote
  #4  
Old 14th January 2011, 10:59 PM
pythagorean Offline
Registered User
 
Join Date: Aug 2010
Posts: 272
windows_xp_2003ie
Re: Samba problem

If you have Windows Live Essentials installed on the windows machine then samba shares wont work from the linux machines but it will work the other direction.
__________________
Phenom II x4 B55 BE Win7/Fedora 14 dual boot
Compaq CQ62-220US Vista Ultimate/Fedora 13 dual boot
Acer Aspire One D250 Ubuntu 10.04
www.pythagoreanmetronome.com
Reply With Quote
  #5  
Old 14th January 2011, 11:00 PM
jpollard Online
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,103
linuxfedorafirefox
Re: Samba problem

There are several - most deal only with files. one to allow samba to act
as a domain controller:

samba_domain_controller
samba_export_all_ro
samba_export_all_rw
samba_create_home_dirs
allow_smb_anon_write
samba_share_fusefs
samba_share_nfs
samba_run_unconfined
use_samba_home_dirs

For most files I have samba_enable_home_dirs, and use_samba_home_dirs this allows samba to
pass data from home directories to windows.

I haven't shared printers yet.
Reply With Quote
  #6  
Old 15th January 2011, 11:21 AM
ahesham's Avatar
ahesham Offline
Registered User
 
Join Date: Jan 2011
Location: Cairo, Egypt
Posts: 14
linuxfedorafirefox
Re: Samba problem

Quote:
Originally Posted by jpollard View Post
There are several - most deal only with files. one to allow samba to act
as a domain controller:

samba_domain_controller
samba_export_all_ro
samba_export_all_rw
samba_create_home_dirs
allow_smb_anon_write
samba_share_fusefs
samba_share_nfs
samba_run_unconfined
use_samba_home_dirs

For most files I have samba_enable_home_dirs, and use_samba_home_dirs this allows samba to
pass data from home directories to windows.

I haven't shared printers yet.
In SELinux, I filtered all the bools by "samba" and enabled all the results. I've also played with the name resolution order and set it as "name resolve order = lmhost wins bcast host" and now I can view other Windows PCs shares; however, still they can't view my shares nor are they listed in "Network" on my box. When I do "Connect to server" and follow the procedure, I can view my shares; however, they are not listed in "Network" and thus are not available to other computers even if I type \\amr-pc\ShareName in Windows. It complains that no PC named amr-pc is on the same network, and yes we're all in the same workgroup and subnet.
__________________
Find the Master.
Follow the Master..
Become the Master...
Reply With Quote
  #7  
Old 15th January 2011, 12:10 PM
jakebpg Offline
Registered User
 
Join Date: Feb 2009
Location: Northeast
Posts: 292
linuxfedorafirefox
Re: Samba problem

Quote:
Originally Posted by ahesham View Post
In SELinux, I filtered all the bools by "samba" and enabled all the results. I've also played with the name resolution order and set it as "name resolve order = lmhost wins bcast host" and now I can view other Windows PCs shares; however, still they can't view my shares nor are they listed in "Network" on my box. When I do "Connect to server" and follow the procedure, I can view my shares; however, they are not listed in "Network" and thus are not available to other computers even if I type \\amr-pc\ShareName in Windows. It complains that no PC named amr-pc is on the same network, and yes we're all in the same workgroup and subnet.
Almost sounds like you do not have the samba daemons running.

Check to make sure that SMB and NMB are running if not start them and mark them for auto start in all run levels 2,3,4,5

Also is xinetd installed and running?

The easiest way to see if samba is working right is to use SWAT in a browser for admin. If you do localhost:901 after swat is installed and enabled in services and add port 901/tcp into the firewall as trusted you should be able to connect to the samba server and if not then you have a configuration problem.
Reply With Quote
  #8  
Old 15th January 2011, 05:12 PM
ahesham's Avatar
ahesham Offline
Registered User
 
Join Date: Jan 2011
Location: Cairo, Egypt
Posts: 14
linuxfedorafirefox
Re: Samba problem

Quote:
Originally Posted by jakebpg View Post
Almost sounds like you do not have the samba daemons running.

Check to make sure that SMB and NMB are running if not start them and mark them for auto start in all run levels 2,3,4,5

Also is xinetd installed and running?

The easiest way to see if samba is working right is to use SWAT in a browser for admin. If you do localhost:901 after swat is installed and enabled in services and add port 901/tcp into the firewall as trusted you should be able to connect to the samba server and if not then you have a configuration problem.
Now it works, thank you. I had winbindd, nmb, and xinetd service stopped.
__________________
Find the Master.
Follow the Master..
Become the Master...
Reply With Quote
  #9  
Old 15th January 2011, 05:29 PM
jakebpg Offline
Registered User
 
Join Date: Feb 2009
Location: Northeast
Posts: 292
linuxfedorafirefox
Re: Samba problem

Quote:
Originally Posted by ahesham View Post
Now it works, thank you. I had winbindd, nmb, and xinetd service stopped.
No problem.

You should mark this as solved so that if others are having problems they can look here and know what solved you're problem and then they can verify if they need to do the same to fix their problem.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
samba problem antonyna Servers & Networking 4 7th September 2009 02:11 AM
F10 & Samba problem reneve59 Servers & Networking 8 9th April 2009 06:26 PM
and another samba in fc6 problem... thedude Servers & Networking 0 18th November 2006 02:16 PM
System-config-samba problem - Samba 3.0.23c-1.fc5 Duli Servers & Networking 0 30th September 2006 03:37 AM
Yet another samba problem HaMBoNE79 Servers & Networking 2 8th July 2005 08:41 PM


Current GMT-time: 16:34 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat