LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 11-27-2011, 04:53 AM   #1
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS
Posts: 351

Rep: Reputation: 7
unknown item when re-installing shadow


i'm re-installing shadow after the installation of pam.i did everything as book says. after the configuration of chage and issuing the next command for creating the files like groupdel and useradd, i logged in as user ali and issued the su command, enter the password of the root user and i got this error:
Code:
configuration error- unknown item 'CRACKLIB_DICPATH' (notify administrator)
by the way i didn't install the cracklib

Last edited by devilboy09; 11-27-2011 at 04:54 AM.
 
Old 11-27-2011, 09:49 AM   #2
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS
Posts: 351

Original Poster
Rep: Reputation: 7
anybody ?
 
Old 11-27-2011, 03:48 PM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

It looks like you did use one of the commands in the Shadow-4.1.4.3 chapter that uses cracklib.

If you do not use cracklib do _not_ execute the following command:
Code:
sed -i 's@DICTPATH.*@DICTPATH\t/lib/cracklib/pw_dict@' etc/login.defs
and execute the 'system-passwd' (without cracklib) and _not_ the 'system-passwd' (with cracklib) command.

Hope this helps.
 
Old 11-27-2011, 04:12 PM   #4
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS
Posts: 351

Original Poster
Rep: Reputation: 7
Code:
sed -i 's@DICTPATH.*@DICTPATH\t/lib/cracklib/pw_dict@' etc/login.defs
i didn't execute it.
Code:
 execute the 'system-passwd'
i did execute it as well, but i'm getting the same error!!!
 
Old 11-27-2011, 04:18 PM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,
Quote:
Originally Posted by devilboy09 View Post
Code:
 execute the 'system-passwd'
i did execute it as well, but i'm getting the same error!!!
?? You executed both the with and without version?

Remove /etc/pam.d/system-password and only re-run the 'system-passwd' (without cracklib) command.

Check all (!!) the created files manually to see if all went as described in the chapter.
 
Old 11-27-2011, 04:37 PM   #6
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS
Posts: 351

Original Poster
Rep: Reputation: 7
Code:
You executed both the with and without version?
no, just without cracklib.
BTW there's a sed command in the re-installing shadow section for configuring /etc/login.defs:
Code:
for FUNCTION in LASTLOG_ENAB MAIL_CHECK_ENAB \
                PORTTIME_CHECKS_ENAB CONSOLE \
                MOTD_FILE NOLOGINS_FILE PASS_MIN_LEN \
                SU_WHEEL_ONLY MD5_CRYPT_ENAB \
                CONSOLE_GROUPS ENVIRON_FILE \
                ULIMIT ENV_TZ ENV_HZ ENV_SUPATH \
                ENV_PATH QMAIL_DIR MAIL_DIR MAIL_FILE \
                CHFN_AUTH FAILLOG_ENAB QUOTAS_ENAB FTMP_FILE \
                OBSCURE_CHECKS_ENAB CRACKLIB_DICTPATH \
                PASS_CHANGE_TRIES PASS_ALWAYS_WARN ISSUE_FILE
do
    sed -i "s/^$FUNCTION/# &/" /etc/login.defs
done
notice that there's a CRACKLIB_DICPATH option in for loop!!!
is it ok to use this option?
 
Old 11-27-2011, 04:47 PM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,
Quote:
Originally Posted by devilboy09 View Post
BTW there's a sed command in the re-installing shadow section for configuring /etc/login.defs:
Code:
for FUNCTION in LASTLOG_ENAB MAIL_CHECK_ENAB \
                PORTTIME_CHECKS_ENAB CONSOLE \
                MOTD_FILE NOLOGINS_FILE PASS_MIN_LEN \
                SU_WHEEL_ONLY MD5_CRYPT_ENAB \
                CONSOLE_GROUPS ENVIRON_FILE \
                ULIMIT ENV_TZ ENV_HZ ENV_SUPATH \
                ENV_PATH QMAIL_DIR MAIL_DIR MAIL_FILE \
                CHFN_AUTH FAILLOG_ENAB QUOTAS_ENAB FTMP_FILE \
                OBSCURE_CHECKS_ENAB CRACKLIB_DICTPATH \
                PASS_CHANGE_TRIES PASS_ALWAYS_WARN ISSUE_FILE
do
    sed -i "s/^$FUNCTION/# &/" /etc/login.defs
done
notice that there's a CRACKLIB_DICPATH option in for loop!!!
is it ok to use this option?
If you look at what the sed command does (comment out all in the for loop) you'll see that the command is correct (all the commands in the book are correct ).

So it is not only OK to do this, you have to do this step.

Hope this helps.
 
Old 11-29-2011, 02:43 PM   #8
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS
Posts: 351

Original Poster
Rep: Reputation: 7
i booted my host machine, chroot, and issued the commands, it went well
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing lilo item when a drive is not present 98werty Linux - General 2 11-02-2010 07:05 AM
unknown item 'FAIL_DELAY' etc. after login or su kulmis Debian 7 06-29-2007 04:39 AM
unknown configuration item `FAIL_DELAY' cccc Debian 0 05-04-2007 09:59 AM
mozilla xpm kmenu item desktop item cjae Linux - Newbie 3 04-06-2005 08:11 AM
Unknown Item in Tray Arkas Linux - Newbie 1 08-23-2003 01:19 PM


All times are GMT -5. The time now is 01:53 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration