LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-26-2008, 03:41 AM   #1
batfastad
Member
 
Registered: Nov 2004
Location: London, UK
Distribution: CentOS, RHEL, Debian, IPCop, PS2Linux
Posts: 95

Rep: Reputation: 23
Samba sharing, linux permissions and best practice


Hi everyone

I've got a RAID 6 array successfully formatted and mounted in Ubuntu Server 8.04. I'm now looking to share this device out to the network as a series of Samba shares. I'm not worrying about printers yet, I'll wait until I've got basic shares working until I get my printers on there.

I'm using a rather good 3ware hardware RAID controller which is automatically picked up by Ubuntu.
There's a few things I need some advice on though:



The RAID device is mounted at /media/raid so within that device I've created a few folders which will be the root of some shares.

I want all of these shares to be complete anonymous access - anyone on our local network can read/write to the files on these shares (once I've got our mail transferred to Zimbra I'll set up LDAP auth)



1) Do the Linux permissions of the root share folders within /mount/raid matter to Windows/Mac clients?

Or is that all down to the Samba/Netatalk conf files?



2) Should I set the permissions of /mount/raid to that of my main user account on this server box?



3) Do the Linux permissions of any files/folders created on this device through Samba, get inherited from the partitions of the /mount/raid mountpoint or anywhere else?

Or will I have to run a shell script every so often to reset all the file permissions on the NAS to ensure my server admin account retains ownership?

Does my server admin user account need to retain ownership of the files/folders?


4) Here's my smb.conf so far (modified the default but have stripped most of the cruft/comments out)


Code:
[global]
workgroup = domain.com
netbios name = files
server string = %h server (Samba, Ubuntu Server 8.04)
encrypt passwords = yes

dns proxy = no
;name resolve order = lmhosts host wins bcast
interfaces = eth0
bind interfaces only = true

log file = /var/log/samba/log.%m
max log size = 10000
syslog = 0
panic action = /usr/share/samba/panic-action %d
security = share

;map to guest = bad user

# Most people will find that this option gives better performance.
# See smb.conf(5) and /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/speed.html
# for details
# You may want to add the following on a Linux system:
#         SO_RCVBUF=8192 SO_SNDBUF=8192
   socket options = TCP_NODELAY

[testshare1]
path = /media/raid/shared
comment = comment
browseable = yes
public = yes
writeable = yes
read only = no
guest only = yes
guest ok = yes
create mask = 0777
directory mask = 0777

The last thing I want with these anonymous/guest shares is for people to be getting permission errors on certain files/folders



Any comments/suggestions/answers are most appreciated



Thanks, B
 
  


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
File permissions, good practice benedikt.k Linux - Security 1 02-05-2008 02:08 PM
Apache htdocs permissions best practice? terosaur Linux - Security 3 01-28-2008 07:03 PM
Samba File Sharing permissions problem mjhermanso21 Linux - Server 1 07-01-2007 08:12 PM
windows\linux samba sharing mullog Linux - Networking 18 01-26-2005 09:37 PM
Sharing from samba to linux kubicon Linux - Software 1 08-25-2004 09:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:37 PM.

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