[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with runas
> Hi!
> Debugging my configuration I have discovered strange behaviour of "runas"
> function. It seems impossible to pass "-M" "644" arguments to "filepriv"
> function.
> Look on this interactive session:
> proton<jurek>(773)# /export/local/mail/bin/router -i
> ZMailer router (2.97mea #4: Tue Nov 22 10:05:26 MET 1994)
^^^^
Yes, 2.97 had something amiss in the way
how it parsed its arguments. (2.98 fixed this,
but had other things broken badly enough.)
Please pick 2.99.3 + patch4
....
> z# filepriv -M 644 /home/neutron2/p/jurek/.forward
> 302
> z# runas 60001 filepriv -M 644 /home/neutron2/p/jurek/.forward
> -M: No such file or directory
> filepriv: cannot fopen("-M")!
> z# runas 60001 filepriv /home/neutron2/p/jurek/.forward
> 302
> z#
> As you can see in first and third case everything works OK but in second
> case not! This sequence is a part of "getpriv" function and now I have
> a problem to make it working.
> As you can notice I am still using 2.97mea I did not have a time
> for upgrade :-(
> Is the problem fixed in newr releases?
Yep, and I am using it to allow different file priviledges
for .forwards and $MAILVAR/lists/ -files. (The latter
ones can be allowed to have group-write, while the first
should not...)
> Jurek
> ------------------------------------------------------------------------
> Jerzy Sobczyk ____________ ___ Institute of Control and
> J.Sobczyk@ia.pw.edu.pl / / | |/ _\ Computation Engineering,
/Matti Aarnio <mea@nic.funet.fi>