SA Scoring
Dhawal Doshy
dhawal at netmagicsolutions.com
Wed May 17 23:04:19 IST 2006
Glenn Steen writes:
> On 17/05/06, Ed Bruce <edwardbruce at sbcglobal.net> wrote:
>> Dhawal Doshy wrote:
>> > Ed Bruce writes:
>> >> Glenn Steen wrote:
>> >>> On 17/05/06, --[UxBoD]-- <uxbod at splatnix.net> wrote:
>> >>>> Hi Scott,
>> >>>> oops again, upgraded DCC and was using wrong path :( with respect to
>> >>>> the bayes database yes I am using root. Should it be held under the
>> >>>> postfix
>> >>>> account ?
>> >>>
>> >>> Phil, if that path/files are readable by postfix (assuming you do the
>> >>> usual unprivileged chroot thing)... well, then that is fine. If not
>> >>> ... :-).
>> >>> Easiest test is to su into the postfix user account and rerun the SA
>> >>> lint from there... Search the output for "bayes":-).
>> >>> Ownership of the files/directories and/or permission "mask" might
>> need
>> >>> be adjusted, if it isn't readable/writable.
>> >>> While you're at it (logged in as the postfix user), also look that
>> >>> pyzor/razor/dcc really works for that user too... It's rather common
>> >>> to make the postfix users homedir unwritable, so these might need
>> some
>> >>> help too.
>> >> I have a question, since our postfix account is in a chroot jail and
>> >> can't be su'ed to, how do you check this out?
>> >
>> >
>> > I am not too sure but the regular method should work:
>> > [root at hostname ~]# su - postfix -s /bin/sh
>> > [postfix at hostname ~]$ spamassassin -D --lint -x
>> > - dhawal
>> >
>> Thanks that worked. Adding the -s option actually. Thanks again.
>
> Yep, Dahwal is quite correct... The thing is that the postfix user is
> often set to have a "non-shell" command for login ... /bin/false isn't
> uncommon...:-). So you simply have to tell what shell to use. If you
> like a shell with a little more functionality (commandline
> history/editing....:-) you could run bash ... or whatever gets you
> happy:-).
Umm.. sh is bash, AFAIK no one uses the bourne shell (sh) in linux anymore,
everyone IS using bourne again shell (bash)
[dhawal at sauron ~]$ ll /bin/sh /bin/bash
-rwxr-xr-x 1 root root 616184 Feb 22 2005 /bin/bash
lrwxrwxrwx 1 root root 4 Jun 6 2005 /bin/sh -> bash
- dhawal
> --
> -- Glenn
> email: glenn < dot > steen < at > gmail < dot > com
> work: glenn < dot > steen < at > ap1 < dot > se
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website!
More information about the MailScanner
mailing list