#5753: manage syncdb (first time) in a small chrooted environment for example
don't give defaultuser...
--------------------------------+-------------------------------------------
   Reporter:  ClaesBas          |                Owner:  nobody       
     Status:  new               |            Component:  Uncategorized
    Version:  SVN               |           Resolution:               
   Keywords:  syncdb superuser  |                Stage:  Accepted     
  Has_patch:  0                 |           Needs_docs:  0            
Needs_tests:  0                 |   Needs_better_patch:  0            
--------------------------------+-------------------------------------------
Changes (by mtredinnick):

  * needs_better_patch:  => 0
  * has_patch:  1 => 0
  * stage:  Unreviewed => Accepted
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 [For other readers wondering what this is about: if you have a ''really''
 minimal environ with no auth support, then getuid() may fail to return a
 username. This usually means you need at least /etc/passwd.]

 I would think there's going to be a fair bit of stuff that will cause
 problems if there's no /etc/passwd or other way for things like getuid()
 to work, so you're not really solving the root problem here. Still, it's
 probably a relatively harmless fix, but it needs a comment about why it
 can fail.

 I'd probably prefer that we just didn't display a default username in this
 case, too, if we go down this path.

 In future, please give an explanation of what you're trying to fix. I've
 had enough experience with setting up chroot environments to recognise the
 problem, but not everybody is going to have been that unlucky in the past
 and you really are talking about a far-out edge case here.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/5753#comment:1>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to