[Keystone Slip #17] Try out new shadow suite

lfs-book at linuxfromscratch.org lfs-book at linuxfromscratch.org
Fri Mar 30 16:06:48 PST 2001


---------------------------------------------------------------------------
Slip number -----: 17 (Try out new shadow suite)
Contact ---------: None
Problem ---------: Try out new shadow suite
Opened by -------: gerard (Gerard Beekmans) on 03/12/2001 16:07
Assigned To -----: None
Current Status --: O (Open)
---------------------------------------------------------------------------
Summary:
If it fails with an nflg undefined error:
useradd.c:1768
-if (! (nflg || gflg)) {
+if (!gflg) {
---------------------------------------------------------------------------
History:
03/30/2001 18:55 by balu:
Make of the shadow-20000116 failed because of the known nflg-problem:

shadow-20001016.patch:
--- src/useradd.c       Mon Oct  9 20:03:12 2000
+++ src/useradd.c.patched       Fri Mar 30 23:45:52 2001
@@ -1765,7 +1765,7 @@
         * to that group, use useradd -g username username.
         * --bero
         */
-       if (! (nflg || gflg)) {
+       if (!gflg) {
            if (getgrnam(user_name)) {
                 fprintf(stderr, _("%s: group %s exists - if you want to add this user to that group, use -g.\n"), Prog, user_name);
                exit(E_NAME_IN_USE); 

(Can be DLed at http://balu.dnsalias.org/LFS/CVS and has to be put in ftp://packages.linuxfromscratch.org/new-in-cvs)

Installation then looks the following way:

patch -Np0 <../shadow-20001016.patch &&
./configure --prefix=/usr &&
make &&
make install &&
cd etc &&
cp limits login.access \
   login.defs.linux /etc &&
mv /etc/login.defs.linux /etc/login.defs

You might also have noticed that there are no shells and suauth files in the etc-dir anymore.

Fix in the book will be made if the patch-file got uploaded.
---------------------------------------------------------------------------


          Full information on this slip is available at:
http://bugtrack.linuxfromscratch.org/visitor.php3?sid=17&v_func=zoom

---------------------------------------------------------------------------
This message was generated automatically by Keystone at http://www.linuxfromscratch.org






More information about the lfs-book mailing list