fai: fcopy does not resolve uid/gid

Steffen Grunewald steffen.grunewald at aei.mpg.de
Tue May 24 11:59:38 CEST 2005


On Tue, May 24, 2005 at 09:24:22AM +0200, Steffen Grunewald wrote:
> On Mon, May 23, 2005 at 08:36:40PM +0200, Michael Tautschnig wrote:
> > diff -rN -u old-MT_FAI/scripts/fcopy new-MT_FAI/scripts/fcopy
> [...]
> > -  my $uid = ($user  =~ /^\d+$/) ? $user  : getpwnam $user;
> > -  my $gid = ($group =~ /^\d+$/) ? $group : getgrnam $group;
> > +  my $uid = ($user  =~ /^\d+$/) ? $user  : `$ENV{ROOTCMD} perl -e '\$uid = getpwnam $user; print \$uid'`;
> > +  my $gid = ($group =~ /^\d+$/) ? $group : `$ENV{ROOTCMD} perl -e '\$gid = getgrnam $group; print \$gid'`;
[...]
> I'll try to give it a try... had intended to do a full installation today 
> anyway :-)

Except that the "fcopy" script resides in /usr/sbin (both locally and in
nfsroot), the patch appears to work. And I think that's the proper way...

Thomas, can you put this patch on your list for upcoming versions?
(it might even pass Vorlon's review... thinking about it a bit longer,
this *may* be a critical bug (since it forces the installer to remove
some access limitations to make files accessible at all), feel free to
change the bug level...)

Cheers,
 Steffen

-- 
Steffen Grunewald * MPI fuer Gravitationsphysik (Albert-Einstein-Institut)
SciencePark Golm, Am Mühlenberg 1, D-14476 Potsdam * http://www.aei.mpg.de
* e-mail: steffen.grunewald(*)aei.mpg.de * +49-331-567-{fon:7233,fax:7298}
No Word/PPT mails - http://www.gnu.org/philosophy/no-word-attachments.html



More information about the linux-fai mailing list