Great Circle Associates Majordomo-Users
(August 1995)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: Log file problems
From: dwolfe @ risc . sps . mot . com (Dave Wolfe)
Date: Mon, 7 Aug 1995 08:56:29 -0500 (CDT)
To: uunet!sprint.sprint.com!JOHN.B.MONSON
Cc: majordomo-users @ greatcircle . com (Majordomo user's mailing list)
In-reply-to: <OHJF-7840-1785/27*/I=B/G=JOHN/S=MONSON/O=US.SPRINT/ADMD=TELEMAIL/C=US/@MHS> from "sprint.sprint.com!JOHN.B.MONSON" at Aug 4, 95 09:59:13 pm
Reply-to: David Wolfe <david_wolfe @ risc . sps . mot . com>

[ uunet!sprint.sprint.com!JOHN.B.MONSON writes: ]
> My log file is not working at all.  Current configuration:
> 
> perl 4.036
> MD = 1.93
> Sun 4.1.3
> working director MD /xtra/majordomo/Log
> drwxrwxr-x  2 daemon        512 Jul 26 16:37 Log
> 
> /xtra/majordomo/Log/log
> -rwsr-sr-x  1 daemon          2 Aug  1 20:53 log

'Log' usually isn't a directory. How do you have $log configured in your
majordomo.cf file?

> as root:
> TEST# ./wrapper test
> euid is: 1
> egid is: 40 1
> ruid is: 1
> rgid is: 40 1
> TEST# su majordom
> TEST% ./wrapper test
> euid is: 1
> egid is: 40 0 40
> ruid is: 1
> rgid is: 40 0 40

Don't run test as either root or the expected uid (majordom); run it as
any other user. Only then can you verify that it's changing the uid/gid
as it should. Wrapper must be installed setuid root, e.g.:

    -r-sr-x--- root daemon ... wrapper
       ^       ^^^^

-- 
 Dave Wolfe    *Not a spokesman for Motorola*  (512) 891-3246
 Motorola MMTG  6501 Wm. Cannon Dr. W. OE112  Austin  TX  78735-8598


References:
Indexed By Date Previous: Re: Duplicate messages on list
From: Patrik Berglund <patrik@kajen.malmo.se>
Next: Re: perl question
From: dwolfe@risc.sps.mot.com (Dave Wolfe)
Indexed By Thread Previous: Log file problems
From: JOHN.B.MONSON@sprint.sprint.com
Next: perl question
From: chris.large@timewarp.island.net (Chris Large)

Google
 
Search Internet Search www.greatcircle.com