Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 10-15-2005, 02:19 AM   #1
LQ Newbie
Registered: Apr 2004
Posts: 21

Rep: Reputation: 15
Just trying to make a simple, no security file server

All I want is a simple file server that everyone can read from and write to. Absolutely no security limitations at all whatsoever. It's just on my home network, behind 2 routers and 2 firewalls and NAT/IP Masquerading, so security is really not an issue.

However, no matter what I try, I cannot write to the public share from any user but root. What can I do to enable write capability from regular users? Also, files all show up as being owned by root, when they should be owned by samba. They are owned by samba on the actual fileserver, and the directories they are mounted to are owned by samba on the other machines. Why is it mounting them as owned by root?

Here is my smb.conf minus some printer shares.

workgroup = WORKGROUP
server string = Samba Server %v
printcap name = cups
printing = cups
load printers = yes
security = share
browseable = yes
public = yes
browse list = yes
preferred master = yes

comment = Public Files
guest ok = yes
path = /data/public
force user = samba
force group = users
read only = No
public = yes
create mask = 0777
directory mask = 0777
directory security mask = 0777
writeable = yes
force create mode = 0777
force directory mode = 0777

Please help me remove all this annoying security crap!
Old 10-15-2005, 05:46 AM   #2
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
Your network setup sounds a lot like the Charity Office example in the Samba by Example book. If you have samba-doc installed, then you already have this book:

or if you don't have swat installed:
look for this webpage at
Here is a part of the example configuration:
   workgroup = MIDEARTH
   security = SHARE
   printing = CUPS
   printcap name = CUPS
   disable spoolss = Yes
   show add printer wizard = No
   wins support = yes
   comment = Funds Tracking & Management Files
   path = /data/ftmfiles
   read only = No
   force user = abmas
   force group = office
   guest ok = Yes
   nt acl support = No
   comment = General Office Files
   path = /data/officefiles
   read only = No
   force user = abmas
   force group = office
   guest ok = Yes
   nt acl support = No
In this example, the forced user is "abmas" and the forced group is "office". You may want to create a new user/group to use for your share. ( I'm not sure if you want to use a system user ) The directories shared are given the owner:group "abmas:office" using the chmod command as root on the samba server. There are other things mentioned, and I don't know how close you want to be to the example. I would recommend you read the example yourself. If your system doesn't have a samba-doc package, try looking in . ( For rpm based distro's )

One last thing. If you configure samba by manually editing the /etc/samba/smb.conf file yourself, be sure to run "testparm" to verify that you don't have syntax errors in the configuration file.
I copied and pasted your smb.conf segment to a file and it passed this test, However, if there is an error in a part you didn't post, this might cause the configuration to be rejected.

Last edited by jschiwal; 10-15-2005 at 06:05 AM.


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
simple OS for a file server DaveSalt Linux - Newbie 3 02-26-2005 09:29 AM
Making a simple file server - which OS? DaveSalt Linux - Software 2 02-26-2005 08:19 AM
Helix-Server, Quicktime, and some simple file format converters Conpen2000 Linux - Software 1 08-27-2004 11:42 AM
How do I make a simple File server for my home LAN? cpaumelle Linux - Newbie 1 07-23-2004 08:19 AM
Setting up RHL9 as a simple file server daeus Linux - Software 3 01-27-2004 03:44 AM > Forums > Linux Forums > Linux - Networking

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration