Not sure which expiration (password or account) you are trying to set, but you would set it to the maximum number possible, 99999, using the '-M' or '-E' options of the chage command.
For example, to set 'username' password to never expire, you would use:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.