A few days ago, majordomo mail started failing in shlock.pl (line 131).
I thought perhaps someone changed sendmail. I made shlock.pl reveal
the UID and GID when it fails (see diff below). And now I see that
when mail comes from the local machine, shlock gets run as them! What
got done wrong and what can I do about it?
Dick
Enclosure: mods to reveal UID and GID
130a131,136
> $info = `id`;
> $dirname = $tempname;
> $dirname =~ s/\/shlock.*$//;
> @stats = stat($dirname);
> $dirinfa = join(' ', @stats);
> warn("shlock: id = $info, dir = $dirinfa");
168c174
< for ($tries = 0 ; $tries < 600 ; $tries++) {
---
> for ($tries = 0 ; $tries < 20 ; $tries++) {
184c190
< sleep(1);
---
> sleep(5);
Enclosure: sample error messages
trying lock "/u1/NOT/m/majordom/lists/emed-l.config.LOCK" for pid 108745
temporary filename "/u1/NOT/m/majordom/lists/shlock.108745"
shlock: id = uid=5681(hwest) gid=5681(hwest)
, dir = 1114113 65711 83453 3 4647 4647 66261 1024 783050625 782973733 782973733 4096 8 at /u1/NOT/m/majordom/bin/shlock.pl line 136.
shlock: open(">/u1/NOT/m/majordom/lists/shlock.108745"): at /u1/NOT/m/majordom/bin/shlock.pl line 137.
trying lock "/u1/NOT/m/majordom/lists/emed-l.config.LOCK" for pid 94404
temporary filename "/u1/NOT/m/majordom/lists/shlock.94404"
shlock: id = uid=781(english) gid=781(english)
, dir = 1114113 65711 83453 3 1 1 66261 1024 783104933 783113063 783113063 4096 8 at /u1/NOT/m/majordom/bin/shlock.pl line 136, <> line 1.
shlock: open(">/u1/NOT/m/majordom/lists/shlock.94404"): at /u1/NOT/m/majordom/bin/shlock.pl line 137, <> line 1.
|
|