Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 11-12-2011, 03:19 AM   #1
Registered: Nov 2006
Posts: 91

Rep: Reputation: 27
Samba veto-files option on an absolute path?

Is there any possible way to use the veto-files option in Samba to cause Samba to inhibit access to a specific absolute directory path?

The command as documented is more or less used as a pattern march against what I'm assuming is the last part of the directory. Like for example it'll say "veto-files = /readme/" will block all files named "readme".

I on the other hand want to restrict access to a specific directory on a specific share.

Let's say I have two shares: public and private. They are both sharing the same path, and both are using the "force user" option. (because I have a few different windows usernames and don't want to mess with Linux filesystem permissions/groups/etc.) However, on the public share I want a specific absolute path (or two) to be invisible to the user accessing the share and not writable or even accessible. So for example: "/mnt/share/Projects/PrivateFiles" should not be visible or accessible anyone using the Public share, but should be fully visible and writable to anyone using the Private share. However, if someone were to, on the Public share, create say /mnt/share/MyStuff/PrivateFiles I don't want that restricted at all. (This is why I want absolute paths.)

Aside from messing with directory permissions, umasks, all that jazz, is there a simple way to accomplish this?

Here's another example of why I might want to do this. Suppose I have the folder /mnt/share/mac which is being shared as a separate share for Mac systems. I also want Macs to have read/write access to the /mnt/share share but not to be able to spew their .DS_Store and all that stuff all over the place. veto-files lets me restrict this on the share hosting /mnt/share but it in turn makes any of those files invisible inside the /mnt/share/mac folder on that same share. In other words, on /mnt/share I want only the absolute paths (e.g. /mnt/share/.DS_Store and /mnt/share/.Trashes) to be blocked; I still want access to say /mnt/share/mac/.DS_Store.






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
[SOLVED] How to get the absolute path of the running executable file and current work path ? 915086731 Programming 3 11-01-2011 10:28 AM
veto file in samba cnt Linux - Server 1 08-04-2011 09:57 AM
Samba veto files alexsil Linux - Newbie 0 03-10-2011 04:04 PM
Samba - Veto Help Dmjmusser Linux - Networking 3 02-07-2006 03:25 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:31 PM.

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