Add account expiry to user accounts in Linux and Solaris 31 August, 2011 By gerald Leave a Comment In Linux Shell # usermod -p "" foo # chage -d 0 foo 12 # usermod -p "" foo# chage -d 0 foo In Solaris Shell # useradd foo # passwd foo # passwd -f foo 123 # useradd foo# passwd foo# passwd -f foo