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 29th May 2011, 08:42 PM
gushy Offline
Registered User
 
Join Date: Dec 2004
Posts: 9
macosfirefox
Setting up a *very* relaxed samba config

Guys,

I've got a situation where I would normally use NFS, but cannot. So in it's place I need to use a samba share (even though it's linux -> linux). I need it completely open and world writeable as if I had done an rw in an NFS export.

I thought I had it as when logged in as a user I can edit delete etc. however the apache user seems to be struggling with creating files.

Here's my smb.conf as it stands.

Code:
[global]
	workgroup = WGRP
	server string = Samba Server Version %v
	security = user
	passdb backend = tdbsam
	unix extensions = no

[tmp]
	comment = Temp Directory
	path = /var/tmp
	public = yes
	guest ok = yes
	writeable = yes
	browseable = yes


[sites]
	comment = Sites Directory
	path = /var/www/sites
	public = yes
	guest ok = no
	write list = siteusr
	writeable = yes
	create mask = 0777
	browseable = no
	security mask = 0777
        directory security mask = 0777
* note that the drive is mapped as user siteusr

Any ideas as to what I can do to open it up more?

Thanks.
Reply With Quote
  #2  
Old 29th May 2011, 08:52 PM
scott32746 Offline
Registered User
 
Join Date: Jun 2007
Location: Lake Mary, Florida
Age: 48
Posts: 1,082
windows_xp_2003firefox
Re: Setting up a *very* relaxed samba config

Hello,
Not sure but try changing to [sites]
write list = @siteusr

then
# service smb restart
Reply With Quote
  #3  
Old 30th May 2011, 03:44 PM
gushy Offline
Registered User
 
Join Date: Dec 2004
Posts: 9
macosfirefox
Re: Setting up a *very* relaxed samba config

Not seen that before, I'll give it a go thanks.
Reply With Quote
  #4  
Old 30th May 2011, 09:06 PM
Doug G Offline
Registered User
 
Join Date: Jul 2005
Posts: 640
windows_7firefox
Re: Setting up a *very* relaxed samba config

You might also look at forceuser. You can force the share to operate as a particular linux user account no matter what user opens the share. I don't think samba shares can override underlying linux permissions, but I could be wrong ..
__________________
======
Doug G
======
Reply With Quote
  #5  
Old 31st May 2011, 12:26 AM
gushy Offline
Registered User
 
Join Date: Dec 2004
Posts: 9
macosfirefox
Re: Setting up a *very* relaxed samba config

forceuser sounds like it might do the trick. I'll give that a go too, thanks.
Reply With Quote
  #6  
Old 31st May 2011, 03:20 PM
gushy Offline
Registered User
 
Join Date: Dec 2004
Posts: 9
macosfirefox
Re: Setting up a *very* relaxed samba config

adding uid= and gid = to the fstab line did the trick, although now I'm just hoping that no-one other than apache needs to write to the share!
Reply With Quote
Reply

Tags
config, relaxed, samba, setting

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 shares available only after OKing them in Samba server config tool gizenshu Servers & Networking 1 1st October 2010 06:08 PM
Having to enter Samba password manually in Samba config screen after every reboot! Syncro Servers & Networking 3 17th July 2008 12:03 AM
System-config-samba problem - Samba 3.0.23c-1.fc5 Duli Servers & Networking 0 30th September 2006 03:37 AM


Current GMT-time: 12:11 (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