Re: Any idea why chroot temporarily "cannot find name for group ID 0"?



On Mon, Jun 30, 2008 at 12:06:02AM -0700, David Barrett <dbarrett@xxxxxxxxxxxx> was heard to say:
[root@XXXX svn]# chroot staging/www
id: cannot find name for group ID 0
id: cannot find name for group ID 1
id: cannot find name for group ID 2
id: cannot find name for group ID 3
id: cannot find name for group ID 4
id: cannot find name for group ID 6
id: cannot find name for group ID 10

I wonder what you would get while this is happening if you run "strace id";
of course you might have to install strace in the chroot first. Also,
did you check whether there's anything odd in nsswitch.conf? (I suppose
probably not since you didn't mention setting anything up there, but
it's worth a check)

Aha! it's fixed! 30 minutes after the first attempt it's suddenly working.

What cron jobs are scheduled? (system jobs as well as user jobs)
Maybe one of them is causing this problem?

Do you have nscd installed in the chroots or on the main system?

So one theory is something is changing the permissions of /etc/group and
/etc/passwd. But I can't figure out what that might be. Next time I'm
going to check the permissions first thing.

It seems unlikely that this is related to your problem. Your shell
was unable to determine its user name, but it was running as root and
root could read /etc/passwd.

Daniel


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Converting from SYSPLEX(NO) to SYSPLEX(YES) for a UNIX root filesystem?
    ... Run jobs BPXISYSR and BPXISYSS to create the SYSPLEX Root and individual ... system root HFS datasets. ... Also change the mount for the old root to mount on the ...
    (bit.listserv.ibm-main)
  • Re: is it possible to install a desktop-manager without python and perl?
    ... Like others said, learn whats the right tool for the job, do the jobs you feel ... that if I can save three weeks programing, let the program run a couple of days ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
    (Debian-User)
  • Re: Anacron for non-root users?
    ... cron.monthly and cron.weekly and runs them as root. ... cron jobs. ... and the computer is switched on --- whereas anacron tests more ... Running su as root requires no password, and the -c switch tells su to ...
    (Ubuntu)
  • Re: [OT] Screen (was Affecting Inst. Change)
    ... but competent OSs have batch queues for running such jobs. ... Give a man a fish, and he eats for a day. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: [SLE] Cannot erase printqueue
    ... > This is the message I receive when I try to erase the 2 jobs. ... First make sure that root is part of the print system using lppasswd -a ... root and then use the cancel command: ...
    (SuSE)