SPUG: Inspired, broken.
Atom Powers
atomic at wyrdtech.com
Wed Feb 9 13:43:14 PST 2005
Tim Maher wrote:
> On Wed, Feb 09, 2005 at 01:27:48PM -0800, Atom Powers wrote:
>
>>This doesn't work: ( I apologize for the line breaks )
>>
>>apowers at hermes0:/home/mailman> sudo -u mailman perl5 -wnl -e
>>'m/\w+\@\w+\.\w{3}/ and print "\L$&\E OK";' address_list.txt >
>>recipients.txt
>>recipients.txt: Permission denied.
>
>
> Apparently the mailman ID is attempting a write to the
> current directory, and it doesn't have permission there,
> so use a directory it can write to; for example:
>
> sudo -u mailman perl5 -wnl -e 'command' infile > /tmp/outfile
>
Nope. Mailman has write permission to it's home drive.
apowers at hermes0:/home> ll
total 5
drwxr-xr-x 3 apowers UnixAdmins 512 Feb 9 13:35 apowers
drwxr-xr-x 7 mailman mail 1024 Feb 9 08:39 mailman
apowers at hermes0:/home> ll mailman/
total 270
drwxrwxr-x 3 mailman wheel 512 Jan 19 12:39 .spamassassin
drwxr-xr-x 2 mailman mail 512 Feb 1 12:59 .ssh
-rw-r--r-- 1 root mail 64566 Feb 9 00:00 address_list.txt
drwxrwxr-x 2 mailman wheel 512 Feb 9 11:00 bin
drwxrwxr-x 2 mailman mail 5120 Feb 9 00:00 mail
drwxr-xr-x 121 mailman mail 41984 Feb 9 13:39 quarantine
-rw-rw-r-- 1 mailman mail 21284 Feb 9 00:05 recipients.txt
-rw-rw-r-- 1 mailman mail 65536 Feb 9 00:05 recipients.db
-rw-rw-r-- 1 mailman wheel 82 Jan 19 13:26 recipients.proto
More information about the spug-list
mailing list