#2144: shadow-4.1.0
--------------------------------------+-------------------------------------
 Reporter:  [EMAIL PROTECTED]  |        Owner:  [email protected]
     Type:  task                      |       Status:  new                      
    
 Priority:  normal                    |    Milestone:  7.0                      
    
Component:  Book                      |      Version:  SVN                      
    
 Severity:  normal                    |   Resolution:                           
    
 Keywords:                            |  
--------------------------------------+-------------------------------------
Comment (by [EMAIL PROTECTED]):

 This version fixes the useradd/usermod groupname vs. groupid bug that can
 still be observed in 4.0.18.2 (see #2145).

 Here's a couple of suggestions for the instructions:

 {{{
 sed -i -e '[EMAIL PROTECTED] [EMAIL PROTECTED] MD5@' etc/login.defs
 }}}

 instead of

 {{{
 sed -i -e '[EMAIL PROTECTED]@MD5_CRYPT_ENAB yes@' -e
 's@/var/spool/mail@/var/mail@' etc/login.defs
 }}}

 According to the comments in login.defs, MD5_CRYPT_ENAB is deprecated, in
 favour of the new ENCRYPT_METHOD setting.

 Then:

 {{{
 sed -i -e 's/yes/no/' etc/useradd
 }}}

 instead of

 {{{
 sed -i 's/yes/no/' /etc/default/useradd
 }}}

 This is just to make it more consistent with the login.defs edit, where
 the change is made prior to installation, rather than after.

 Finally, we still see:

 {{{
 useradd: unknown GID 1000
 }}}

 This is because etc/useradd has

 {{{
 GROUP=1000
 }}}

 useradd apparently complains of the non-existent default group, even when
 a specific, existent group is provided on the command line.  So, we could
 provide a group with GID=1000 (presumably this would be a catch-all
 'users' group I've seen on occasion).  Or we could change the default to a
 group we already have in /etc/passwd or a new more suitable one if that's
 deemed a better option.  Or, we could remove the default group setting and
 all related handling of it in useradd & usermod (which is part of what the
 current Shadow patch does).

 I'd rather not have a non-upstream patch though, if at all possible.

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/2144#comment:2>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to