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

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)
	  root@SunOS:/home2/p/jurek/zmail/zmailer-2.97-940926/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 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?
	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 
------------------------------------------------------------------------