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, 01:19 AM   #1
mrd
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.

[global]
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

[public]
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, 04:46 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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:

http://localhost:901/swat/help/Samba...html#id2530241
or if you don't have swat installed:
look for this webpage at
file:///usr/share/doc/packages/samba...de/simple.html
Here is a part of the example configuration:
Code:
[global]
   workgroup = MIDEARTH
   security = SHARE
   printing = CUPS
   printcap name = CUPS
   disable spoolss = Yes
   show add printer wizard = No
   wins support = yes
  [FTMFILES]
   comment = Funds Tracking & Management Files
   path = /data/ftmfiles
   read only = No
   force user = abmas
   force group = office
   guest ok = Yes
   nt acl support = No
  [office]
   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 http://rpm.pbone.net . ( 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 05:05 AM.
 
  


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

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

All times are GMT -5. The time now is 08:04 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