~ubuntu-branches/ubuntu/raring/shadow/raring-proposed

« back to all changes in this revision

Viewing changes to debian/passwd.postinst

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2009-05-05 09:45:21 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20090505094521-wpk2wn3q7957tlah
Tags: 1:4.1.3.1-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Ubuntu specific:
    + debian/login.defs: use SHA512 by default for password crypt routine.
  - debian/patches/stdout-encrypted-password.patch: chpasswd can report
    password hashes on stdout (debian bug 505640).
  - debian/login.pam: Enable SELinux support (debian bug 527106).
  - debian/securetty.linux: support Freescale MX-series (debian bug 527095).
* Add debian/patches/300_lastlog_failure: fixed upstream (debian bug 524873).
* Drop debian/patches/593_omit_lastchange_field_if_clock_is_misset: fixed
  upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
            done
16
16
    fi
17
17
 
18
 
    # Fix root password of '!' for vm-builder installed instances. Unrelated
19
 
    # to passwd, but seems best place. /var/log/installer won't exist in
20
 
    # vm-builder created images
21
 
    if dpkg --compare-versions "$2" lt-nl "1:4.1.1-5ubuntu3" && \
22
 
       test ! -d "/var/log/installer"; then
23
 
        if printf '!\0' | unix_chkpwd root nullok ; then
24
 
            echo 'root:!' | chpasswd -e
25
 
        fi
26
 
    fi
27
 
 
28
18
    rm -f /etc/pam.d/passwd.pre-upgrade 2>/dev/null
29
19
        if ! getent group shadow | grep -q '^shadow:[^:]*:42'
30
20
        then