SPUG: Inspired, broken.

Tim Maher tim at consultix-inc.com
Wed Feb 9 13:54:21 PST 2005

On Wed, Feb 09, 2005 at 01:43:14PM -0800, Atom Powers wrote:
> >
> >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.

Please confirm that mailmain ends up in its home directory and
the permissions are okay by running:

sudo -u mailman 'pwd; ls -ld . recipients.txt; touch newfile'

I think you need to run sudo (which I rarely do) like this
to make your command work:

sudo -u mailman 'cd /home/mailman; pwd; ls -ld . recipients.txt; touch newfile'

or else cd to ~mailman before running the command.
| Tim Maher, PhD     (206) 781-UNIX      (866) DOC-PERL     (866) DOC-UNIX |
| tim(AT)Consultix-Inc.Com  http://TeachMePerl.Com  http://TeachMeUnix.Com |
|      Watch for my upcoming book: "Minimal Perl for UNIX/Linux People"    |

More information about the spug-list mailing list