LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-03-2009, 12:40 PM   #1
chesterman
LQ Newbie
 
Registered: May 2009
Posts: 16

Rep: Reputation: 0
samba share question


hi folks.

i have to create a share with the following settings:
* only one group will have access
* the users are allowed just to create files, not write or ever read access
* it will only allow .xml files

i know that there is a 'veto' option on samba, but i don't know how to block all file types, except one. the specific files permissions are a doubt to me too.

any help is appreciated. tks in advance
 
Old 08-05-2009, 08:40 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Reverse Veto Files may be implemented in the future.
http://www.spinics.net/lists/samba/msg84276.html

It would probably use a directive like:
Allowed Files = /*.xml/

The Samba mailing list thread thread is only a few days old, so a patch may not be available for a while if it is implemented.

For the rest, search with Google for how "Drop Boxes" are implemented. I think that Apple's OS X configures Samba to implement Drop Boxes. You may be able to find how they configure it, and find an example smb.conf file.

Last edited by jschiwal; 08-05-2009 at 08:44 PM.
 
Old 08-10-2009, 08:17 AM   #3
chesterman
LQ Newbie
 
Registered: May 2009
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jschiwal View Post
Reverse Veto Files may be implemented in the future.
http://www.spinics.net/lists/samba/msg84276.html

It would probably use a directive like:
Allowed Files = /*.xml/
my samba doesn't recongnize this directive.

i'm using version 3.0.21b-2.
 
Old 08-10-2009, 09:40 AM   #4
chitambira
Member
 
Registered: Oct 2008
Location: Online
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 51
Quote:
Originally Posted by chesterman View Post
* only one group will have access
use valid users = @groupname
Quote:
* the users are allowed just to create files, not write or ever read access
creating files involves writing so what do you mean here.
Quote:
* it will only allow .xml files
Allowed Files =/*.xml/ is coming soon! Check
http://www.nabble.com/Reverse-Veto-F...html#a24867889
Quote:
i know that there is a 'veto' option on samba, but i don't know how to block all file types, except one. the specific files permissions are a doubt to me too.
There are two points I would make about using veto files. First of all
there is a performance hit when using it since all files will have to be scanned. This might not be a problem if yours is a 'proper' file server, but just bear it in mind.

Secondly, there is nothing to stop users renaming files to get
them onto the server (e.g. uploading a non-xml file as "file.xml" just to make it accessible on your share)
 
Old 08-10-2009, 09:58 AM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You could run a cron job that periodically uses the "file" command to check new files and quarantines files that aren't xml files. The file command examines the contents of a file and doesn't rely on the extension. If you wanted to, you could even validate the xml files.
 
  


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
Samba share Question.. JeffC1 Linux - Newbie 1 05-14-2008 10:39 PM
question: mounting samba share mstrimel SUSE / openSUSE 2 11-02-2006 10:18 AM
Samba Share Question... SlakAdyct Linux - Software 1 10-15-2004 01:04 PM
Samba Share Question bkmesenbrink Linux - Software 1 05-07-2003 11:13 AM
Samba share question correro Linux - General 16 03-07-2003 03:24 PM

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

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