Date: Thu, 06 Aug 1998 14:44:43 +0200
From: Antonio Nati <A.Nati@cisco.it>
To: Brandon Lockhart <brandon@engulf.net>
Cc: freebsd-questions@FreeBSD.ORG
Subject: Re: system ("makemap") error...
Message-ID: <3.0.1.32.19980806144443.006cd6f4@posta.cisco.it>
In-Reply-To: <Pine.BSF.3.96.980806080201.20062G-100000@engulf.net>
References: <35C98180.41C67EA6@cisco.it>
next in thread | previous in thread | raw e-mail | index | archive | help
In 08.02 06/08/98 -0400, hai scritto:
>How are you SU'ing it to root?
>
The final errore code is shifted 8 bit, so it is 73 * 256 (73 = EX_CANTCREAT).
Makemap contains a check on the output file ("/etc/virtusertable.db").
It checks if user may write to "/etc/virtusertable.db" (using getuid for
user uid).
In my case it decides it has not the correct uid.
Changing the owner of "/etc/virtusertable.db" to httpd's uid makes all the
joke work.
Now I'm wondering about:
1) does "system ()" pass the su'ed uid to the executed command?
2) is it correct that makemap checks getuid and not instead geteuid?
I would like to avoid to make too much chmode in the program.
Tonino
-----------------------------------------------------------------------
Antonio Nati Cisco Consulting S.r.l.
A.Nati@cisco.it Divisione reti e telematica
tel. 06 72990.419 Via G. Carmignani, 2 - 00173 Roma
fax. 06 7230660 http://www.cisco.it
-----------------------------------------------------------------------
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.1.32.19980806144443.006cd6f4>
