[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#745082: chfn and fakechroot



Le samedi 21 février à 03h 50mn 23s (+0100), John Paul Adrian Glaubitz a écrit :
> On 02/21/2015 12:24 AM, jhcha54008 wrote:
> > May I ask if debootstrap ran in a fakechroot environment or as real root ?
> 
> I haven't tried fakechroot, but the debootstrap call was done using the
> real root user. What makes you so sure this is actually an issue with
> fakechroot? I just tried --variant=fakechroot on my main amd64 machine
> and that worked without any issues.
> 
> Adrian
> 

I guess you encountered a different bug : 774332, 745082, 763391
occur when running debootstrap as an unprivileged user
with option --variant=fakechroot
(And the chfn error gives a line
chfn: PAM: System error
in file debootstrap/debootstrap.log)

Does
# perl -e 'system("/usr/bin/chfn","-f","systemd Time Synchronization","systemd-timesync");'
works as real root in a chroot on sh4 ?

(It seems that in functions sh_gecos file /usr/sbin/adduser lines 924-944
and systemcall file /usr/share/perl5/Debian/AdduserCommon.pm lines 158-166 
all quotes are removed in the diagnostic 
    my $c = join(' ', @_);
    print ("$c\n") if $verbose==2;
but were kept in the actual call line 161 of 
/usr/share/perl5/Debian/AdduserCommon.pm :
     if (system(@_)) {
)

> I just tried --variant=fakechroot on my main amd64 machine
> and that worked without any issues.
I cannot reproduce this (I still encouter the bug). 
May I ask if your ran debootstrap --variant=fakechroot
as real root or as an unprivileged user ?

I hope it will help !

Regards,
JH Chatenet


Reply to: