Files not inheriting folder permissions?

From: Paul Hutchings (paul_at_spamcop.net)
Date: 09/28/03


Date: 28 Sep 2003 13:38:14 GMT

I have the following scenario, I'm new to this so I'll explain as best I
can:

I have a folder, /var/spool/filter which is used by a mail scanning program
to store stripped attachments (Windows exe's and that sort of thing).

The scanner script is called as user "filter", which is a member of group
"filter".

There is also a user "helpdesk" in group "filter" - the idea is that our
Helpdesk could retrieve any stripped attachments using the file management
module of Webmin.

These are the permissions on /var/spool/filter:

drwxrws--- 3 filter filter 4.0K Sep 28 14:24 filter

What I'm finding is that when an attachment is stripped using the script
(anomy sanitizer) the quarantined file doesn't inherit the group
permissions from the parent folder, so the Helpdesk user cannot access it:

total 4.0K
-rw------- 1 filter filter 817 Sep 28 14:36 att-mscdexnt.exe-
3f76e3ec.QT

I'd be grateful for any pointers on what I need to be doing to work around
this. I notice if I "su" as filter and create a test file in
/var/spool/filter it is readable by the helpdesk, so I'm wondering if it's
something to do with the way the script is invoked (as per
http://advosys.ca/papers/printable/postfix-filtering.html)

regards
Paul

-- 
paul <at> spamcop.net


Relevant Pages

  • Re: is there the simplest way to do this: logon to my email account and delete bulk emails?
    ... I've looked into the script and it was a great work. ... collecting filter "key word" is troublesom work. ... Fortunately Yahoo mail account already has a "bulk-mail" folder, ...
    (comp.lang.perl.misc)
  • Re: User account and Personal folder mismatch script
    ... I believe you want a script that can be run by an administrator that will ... The script above only documents if a home folder has been assigned. ... > End Sub ...
    (microsoft.public.scripting.vbscript)
  • Input on CleanUp script
    ... Since I'm going to be using this script in a production environment, ... If the script is used with a backup folder ... var strTargetFolder, strBackupFolder, args0, args1, args2, noArgs; ...
    (microsoft.public.scripting.wsh)
  • Input on CleanUp script
    ... Since I'm going to be using this script in a production environment, ... If the script is used with a backup folder ... var strTargetFolder, strBackupFolder, args0, args1, args2, noArgs; ...
    (microsoft.public.scripting.jscript)
  • Re: OT:macros or software?
    ... when a .PDF file is stored there, ... words and depending on weather those words are found in that document, move it to a predetermined folder. ... Easy enough if it were a text document, or even Word, as you could write a DOS script, or a VBS script if you had to load Word to read Word documents, although writing such a script can be harder to a beginner than some might think. ... OK the goal is to put the numerous files scattered everywhere on the computer at work into easy to use folders for my staff to access simply. ...
    (uk.comp.homebuilt)