Skip to content

Instantly share code, notes, and snippets.

@thbishop
Created August 16, 2010 06:23
Show Gist options
  • Save thbishop/526513 to your computer and use it in GitHub Desktop.
Save thbishop/526513 to your computer and use it in GitHub Desktop.
CHEF-1537 reasearch
[root@localhost ~]# cat /etc/redhat-release
Fedora release 11 (Leonidas)
[root@localhost ~]# passwd -S root
root PS 2010-08-13 0 99999 7 -1 (Password set, MD5 crypt.)
[root@localhost ~]# echo $?
0
[root@localhost ~]#
[root@localhost ~]# cat /etc/redhat-release
Fedora release 12 (Constantine)
[root@localhost ~]# passwd -S root
root PS 2010-08-13 0 99999 7 -1 (Password set, MD5 crypt.)
[root@localhost ~]# echo $?
0
[root@localhost ~]#
[root@localhost ~]# cat /etc/redhat-release
Fedora release 13 (Goddard)
[root@localhost ~]# passwd -S root
root PS 2010-08-13 0 99999 7 -1 (Password set, MD5 crypt.)
[root@localhost ~]# echo $?
0
[root@localhost ~]#
# centos 5.0
[root@localhost ~]# cat /etc/redhat-release
CentOS release 5 (Final)
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.18-8.el5 #1 SMP Thu Mar 15 19:46:53 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost ~]# rpm -qa | grep passwd
passwd-0.73-1
[root@localhost ~]# passwd -S root
root PS 2010-08-14 0 99999 7 -1 (Password set, MD5 crypt.)
[root@localhost ~]# echo $?
1
[root@localhost ~]#
# centos 5.1
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.18-53.el5 #1 SMP Mon Nov 12 02:14:55 EST 2007 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost ~]# cat /etc/redhat-release
CentOS release 5 (Final)
[root@localhost ~]# passwd -S root
root PS 2010-08-14 0 99999 7 -1 (Password set, MD5 crypt.)
[root@localhost ~]# echo $?
1
[root@localhost ~]#
[root@localhost ~]# cat /etc/redhat-release
CentOS release 5.2 (Final)
[root@localhost ~]# passwd -S root
root PS 2010-08-14 0 99999 7 -1 (Password set, MD5 crypt.)
[root@localhost ~]# echo $?
1
[root@localhost ~]#
[root@localhost ~]# cat /etc/redhat-release
CentOS release 5.3 (Final)
[root@localhost ~]# passwd -S root
root PS 2010-08-14 0 99999 7 -1 (Password set, MD5 crypt.)
[root@localhost ~]# echo $?
1
[root@localhost ~]#
[root@livecd ~]# cat /etc/redhat-release
CentOS release 5.4 (Final)
[root@livecd ~]# passwd -S root
root PS 2010-08-13 0 99999 7 -1 (Password set, MD5 crypt.)
[root@livecd ~]# echo $?
1
[root@livecd ~]#
[root@livecd ~]# cat /etc/redhat-release
CentOS release 5.5 (Final)
[root@livecd ~]# passwd -S root
root PS 2010-08-14 0 99999 7 -1 (Password set, MD5 crypt.)
[root@livecd ~]# echo $?
1
[root@livecd ~]#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment