[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with runas ... again



Few weeks ago I have asked about "runas" function.
Following suggestions from respone I have upgraded to 2.99.7 but with no success.

> > J.Sobczyk@ia.pw.edu.pl
> Matti Aarnio <mea@utu.fi>
> 
> > 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...)

I have got zmailer-2.99.7 but function "runas" still does not work :(
BTW suggestion to use NOBODY=nobody also does not seem to be right :(

	proton<jurek>(78)# /export/local/mail/bin/router -i
	ZMailer router (2.99.6mea #1: Mon Jan  9 21:11:58 MET 1995)
	  jurek@SunOS:/home/neutron2/p/jurek/zmail/zmailer-2.99.7/router
	Copyright 1992 Rayan S. Zachariassen
	Copyright 1992,1993,1994 Matti Aarnio

	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 nobody filepriv -M 644 /home/neutron2/p/jurek/.forward
	runas: setuid(-5535): Invalid argument
	z# runas 60001 filepriv /home/neutron2/p/jurek/.forward
	302

	Jurek
------------------------------------------------------------------------
Jerzy Sobczyk              ____________ ___     Institute of Control and
J.Sobczyk@ia.pw.edu.pl    /  /     |  |/  _\    Computation Engineering, 
                         /  /  /|  |  |  (____         Warsaw University 
tel.+48 2 660 7297      /  /  _>|  |  |\____  \            of Technology
fax.+48 22 253719      /__/__/__|__|__|_____)  \       Nowowiejska 15/19
tlx. 813 307 pw pl    /________________________/   00-665 Warsaw, POLAND 
------------------------------------------------------------------------