Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12th July 2011, 12:37 AM
uaPtah Offline
Registered User
 
Join Date: Jun 2011
Posts: 9
linuxfirefox
Cool Fedora 15 Can't Share a Folder on Samba Network

In this post I will give a quick solution for a possible problem with sharing a folder in Fedora 15.
I had to spend some time for research and frustration so, hopefully this post will save you from both.

If you have Samba installed and configured to share certain folders on your Fedora machine for a Windows network but, they can't be accessed then following might solve the problem:

1. Go to Applications, Other and run FIREWALL

a). go to TRUSTED SERVICES and check SAMBA and SAMBA CLIENT that are located in the list of services
b). click APPLY
c). go to ICMP FILTER and check ECHO REPLY (PONG) and ECHO REQUEST (PING)
c). click APPLY


2. Go to Applications, System tools and run Add/Remove Software
a). search for SElinux
b). install SELINUX CONFIGURATION GUI


3. Go to Applications, Other and run SELINUX MANAGEMENT
a). go to Boolean
b). check "Allow samba share any file/directory read only"
c). check "Allow samba share any file/directory read/write"


If your Samba is configured correctly, your shared folder should be available on your Windows network.

A little hint: if you don't want other users to use passwords for accessing your shared folder, select SHARE as an Authentication Mode in Samba GUI Configuration Tool, Preferences, Server Settings, Security


Enjoy
Reply With Quote
  #2  
Old 11th August 2011, 10:48 AM
Dimtar Offline
Registered User
 
Join Date: Jun 2011
Posts: 7
windows_7firefox
Re: Fedora 15 Can't Share a Folder on Samba Network

Words cannot express my gratitude, THANK YOU SO MUCH!

The last week has been spent tearing my hair out over this and now its working!
Reply With Quote
  #3  
Old 11th August 2011, 06:01 PM
omelette Offline
Registered User
 
Join Date: Aug 2010
Posts: 88
linuxopera
Re: Fedora 15 Can't Share a Folder on Samba Network

I wish I had a similar experience to report. I have tried everything conceivable and I still have my password refused when prompted. Even with 'Share' selected instead of 'User' I get a password prompt! Someone else posted that he could not connect (refused password) unless he had Selinux enabled and in 'Progressive' mode. On seeing this thread, the one thing I had not tried was enabling Ping/Pong, so gave it a shot. Same result...

FWIW, I am trying to share folders between Fedora 14 to Fedora 15 - I would have thought it should be a breeze! I have tried it with Selinux enabled (enforced & Progressive) Selinux disabled, and every setting possible, including all those mentioned above. And the problem is definitely with F15, F14 shares both ways perfectly with Ubuntu booted, so Samba is correctly setup on F14 as well.

I even removed Samba completely earlier today and installed NFS in an attempt to get F14/F15 talking - no joy there either, though not too surprised about that as it was my first (and probably last!) play with NFS.
Reply With Quote
  #4  
Old 25th August 2011, 11:51 AM
mightymouse2045 Offline
Registered User
 
Join Date: Dec 2010
Posts: 124
linuxfirefox
Re: Fedora 15 Can't Share a Folder on Samba Network

Quote:
Originally Posted by omelette View Post
I wish I had a similar experience to report. I have tried everything conceivable and I still have my password refused when prompted. Even with 'Share' selected instead of 'User' I get a password prompt! Someone else posted that he could not connect (refused password) unless he had Selinux enabled and in 'Progressive' mode. On seeing this thread, the one thing I had not tried was enabling Ping/Pong, so gave it a shot. Same result...

FWIW, I am trying to share folders between Fedora 14 to Fedora 15 - I would have thought it should be a breeze! I have tried it with Selinux enabled (enforced & Progressive) Selinux disabled, and every setting possible, including all those mentioned above. And the problem is definitely with F15, F14 shares both ways perfectly with Ubuntu booted, so Samba is correctly setup on F14 as well.

I even removed Samba completely earlier today and installed NFS in an attempt to get F14/F15 talking - no joy there either, though not too surprised about that as it was my first (and probably last!) play with NFS.
Dude I have had some hair pulling moments also for the last month or so and I finally sat down and resolved the issue today.

Firstly there are some nice troubleshooting tips here http://www.fedoraforum.org/forum/sho...d.php?t=264209

and the steps from this forum in the first post give you a basic outline for getting samba working with the firewall and SELinux.

My issue in the end was a combination of incorrectly configured samba and SELinux.

Once I went through the above post and this post I resolved the issue and it is working like a charm now, and yes I am using F15 also

Some tips I can suggest to make things simple:

* Create a local user account (same user and password that your windows boxes are using), and set that as a user with the same windows username and password in the Samba Server Configuration app.
* Use user access
* Enable read/write samba shares in SELinux - sudo setsebool -P samba_export_all_rw 1 (command line if you don't have the gui app installed)

That's my 2 cents worth anyways

Last edited by mightymouse2045; 25th August 2011 at 11:56 AM.
Reply With Quote
  #5  
Old 23rd September 2011, 07:00 PM
uaPtah Offline
Registered User
 
Join Date: Jun 2011
Posts: 9
linuxfirefox
Re: Fedora 15 Can't Share a Folder on Samba Network

Quote:
Originally Posted by Dimtar View Post
Words cannot express my gratitude, THANK YOU SO MUCH!

The last week has been spent tearing my hair out over this and now its working!
You are very welcome!
Glad my post is helpful for those who are using this great distro.

I hope Fedora 16 will not need such posts anymore
Reply With Quote
  #6  
Old 30th September 2011, 01:35 AM
velocityboy Offline
Registered User
 
Join Date: Sep 2011
Posts: 1
windows_7ie
Re: Fedora 15 Can't Share a Folder on Samba Network

uaPtah - YOU ROCK!!!!!

I had been struggling for weeks with this before I came across your post.
Thanks a Million for the easy and staight forward how-to on this!
Reply With Quote
  #7  
Old 2nd November 2011, 08:09 AM
uaPtah Offline
Registered User
 
Join Date: Jun 2011
Posts: 9
linuxfirefox
Re: Fedora 15 Can't Share a Folder on Samba Network

Quote:
Originally Posted by velocityboy View Post
uaPtah - YOU ROCK!!!!!

I had been struggling for weeks with this before I came across your post.
Thanks a Million for the easy and staight forward how-to on this!
It is my pleasure!

Always glad to help others to run their Linux smoothly, and especially this awesome distro.
It's a simple principle of reciprocity...
Reply With Quote
  #8  
Old 15th November 2011, 01:56 PM
dgrvedado Offline
Registered User
 
Join Date: Nov 2011
Posts: 1
linuxfirefox
Re: Fedora 15 Can't Share a Folder on Samba Network

Well i hve same problem but less complicated

I have a local server on Fedora 15 and 3 o 4 client on Ubuntu and Winrus XP... Before my machine (the server) are installed on Ubuntu, i can shared the single folder on my home user whit the simple right click "Sharing Options" and ready, my client pc's can see and write in my shred folder.

In fedora 15 is not possible... I configure Samba:

[global]
log file = /var/log/samba/log.%m
guest account = nobody
guest ok = yes
;encrypt passwords = yes
;passdb backend = tdbsam
cups options = raw
netbios name = INFERNUS
netbios aliases = INFERNUS
server string = Samba Server Version %v
;default = global
;path = /home/dgr/DATOS
workgroup = MYNET
;os level = 65
;auto services = global
security = share
max log size = 50
interfaces = lo eth0 192.168.1.0/24
hosts allow = 127. 192.168.1.

[DATOS]
comment = DATOS
path = /home/dgr/DATOS
writable = yes
;valid users = datos-op, @smbusers
;write list = datos-op
force group = smbusers
create mode = 777
directory mode = 0777
read only = no
browseable = yes
guest ok = yes
guest only = yes
hide dot files = yes
share mode = yes

I restart the service: service smb restart && service nmb restart

My SELinux is disable and my IPtables is stop and my rules is in blank:
/etc/sysconfig/iptables
# Firewall configuration written by system-config-firewall
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
COMMIT


But in my client when the user access on the network (whit the script on desktop)
/home/any/Desktop/SERVER
nautilus smb://192.168.1.2/

See the folder DATOS but in the double click actions say: Is not possible mount the sharing resource.

I not can do any more...

Some help!!!???
Regards,
David
Reply With Quote
  #9  
Old 13th April 2012, 04:56 PM
IceResurfacer Offline
Registered User
 
Join Date: Apr 2012
Location: Lyons
Posts: 1
linuxfirefox
Thumbs up Re: Fedora 15 Can't Share a Folder on Samba Network

I would like to offer yet another THANKS!!!! After weeks of frustration everything is working like a charm. Thank you for sharing your expertise!
Reply With Quote
  #10  
Old 13th April 2012, 05:49 PM
flyingfsck Offline
Registered User
 
Join Date: Aug 2010
Location: Al Ain, UAE
Posts: 1,060
linuxfirefox
Re: Fedora 15 Can't Share a Folder on Samba Network

Just wondering why you are using Samba to share files between Linux systems? NFS is so much simpler.
Reply With Quote
  #11  
Old 31st May 2012, 08:53 AM
uaPtah Offline
Registered User
 
Join Date: Jun 2011
Posts: 9
linuxfirefox
Re: Fedora 15 Can't Share a Folder on Samba Network

Quote:
Originally Posted by flyingfsck View Post
Just wondering why you are using Samba to share files between Linux systems? NFS is so much simpler.
Unfortunately, some of the systems on my network are dragging on Window$
Reply With Quote
  #12  
Old 31st May 2012, 09:05 AM
flyingfsck Offline
Registered User
 
Join Date: Aug 2010
Location: Al Ain, UAE
Posts: 1,060
linuxfirefox
Re: Fedora 15 Can't Share a Folder on Samba Network

OK, but if the Windows machines are in the minority, then it will be less trouble overall if you install NFS clients on them. In my experience, Samba is a horrid hack and hard to administer.
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 Share of web folder .. andreasoc Servers & Networking 10 3rd October 2008 01:49 PM
Apache web directory in user's folder share with Samba ramirez.alex Installation and Live Media 1 15th March 2007 04:12 PM
Samba network share Beginner63823 Servers & Networking 4 14th September 2004 10:07 AM


Current GMT-time: 22:14 (Saturday, 25-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