[ic] =?iso-8859-1?Q?makecat_can=C3=82=C2=B4t_get_my_uid!?=
jojo@buchonline.net
jojo@buchonline.net
Fri, 8 Dec 2000 10:25:46 +0100 (CET)
Hi List,
I use FreeBSD 3.4 and IC 4.6.1.
Makecat canīt get my uid. The cause is the line
$mvuid = $Windows ? 'everybody' : (getpwnam($Conf{interchangeuser}))[2];
it is always empty. With "$mviud="jojo", it works.
# id
uid=1002(jojo) gid=1002(jojo) groups=1002(jojo), 2002(buchonline)
------------snip makecat --------
$mvuid = $Windows ? 'everybody' : (getpwnam($Conf{interchangeuser}))[2];
# print out the value of mvuid
print "\n mvuid is $mvuid\n";
#print out the value of interchangeuser
print "interchange user is " . (getpwnam("jojo"))[2];
my $xmvuid = $Windows ? 'everybody' : (getpwnam($Conf{minivenduser}))[2];
print "\n and xmvuid is $xmvuid\n";
#$mvuid = "mvend";
# Can I get the id on the other way?
my $xfile = "tmp$$.fil";
my $xname;
open(TEMPFILE,">$xfile");
close TEMPFILE;
my($uid) = (stat($xfile))[4];
unlink $xfile;
$xname = (getpwuid($uid))[0];
print "\n my name is $xname\n\n";
------------snip makecat --------
-------snip output from makecat--------
minivenduser? jojo
minivendgroup? jojo
-------snip output from makecat--------
It is stored and I donīt need to type the name, because Iīve a file
etc/construct.makecat.cfg and this file has lines like
MINIVENDUSER jojo
CATUSER jojo
MINIVENDGROUP jojo
-------snip output from makecat--------
ImageUrl? /construct/images
mvuid is
interchange user is 1002
and xmvuid is 1002
my name is jojo
is not a valid user name on this machine.
-------snip output from makecat--------
Iīve tried with
INTERCHANGEUSER jojo
CATUSER jojo
INTERCHANGEGROUP jojo
with no success.
I know, what I can do. But I think I have to report the misbehavior of
the makecat on FreeBSD and to inform the greatfull akopia team about
this.
Regards,
Joachim
--
Hans-Joachim Leidinger
buch online jojo@buchonline.net
Munscheidstr. 14 FAX: +49 209 1671441
45886 Gelsenkirchen FAX: 0209 1671441