MTD 248-645A Bedienungsanleitung Seite 199

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 347
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 198
Linux From Scratch - Version 7.0
179
6.55. Shadow-4.1.4.3
The Shadow package contains programs for handling passwords in a secure way.
Approximate build time: 0.3 SBU
Required disk space: 30 MB
6.55.1. Installation of Shadow
Note
If you would like to enforce the use of strong passwords, refer to http://www.linuxfromscratch.org/blfs/view/
svn/postlfs/cracklib.html for installing CrackLib prior to building Shadow. Then add --with-libcrack
to the configure command below.
Disable the installation of the groups program and its man pages, as Coreutils provides a better version:
sed -i 's/groups$(EXEEXT) //' src/Makefile.in
find man -name Makefile.in -exec sed -i 's/groups\.1 / /' {} \;
Fix an issue with the installation of Russian man pages:
sed -i 's/man_MANS = $(man_nopam) /man_MANS = /' man/ru/Makefile.in
Instead of using the default crypt method, use the more secure SHA-512 method of password encryption, which also
allows passwords longer than 8 characters. It is also necessary to change the obsolete /var/spool/mail location
for user mailboxes that Shadow uses by default to the /var/mail location used currently:
sed -i -e 's@#ENCRYPT_METHOD DES@ENCRYPT_METHOD SHA512@' \
-e 's@/var/spool/mail@/var/mail@' etc/login.defs
Note
If you chose to build Shadow with Cracklib support, run the following:
sed -i 's@DICTPATH.*@DICTPATH\t/lib/cracklib/pw_dict@' \
etc/login.defs
Prepare Shadow for compilation:
./configure --sysconfdir=/etc
Compile the package:
make
This package does not come with a test suite.
Install the package:
make install
Move a misplaced program to its proper location:
mv -v /usr/bin/passwd /bin
Seitenansicht 198
1 2 ... 194 195 196 197 198 199 200 201 202 203 204 ... 346 347

Kommentare zu diesen Handbüchern

Keine Kommentare