Thread (2 messages) flat view 2 messages, 2 authors, 2021-12-14

man 8 usermod -e, --expiredate EXPIRE_DATE information incorrect (can't be blank, must be -1 to clear)

From: David C. Rankin <hidden>
Date: 2021-12-10 22:54:35

Dear usermod man page maintainers,

  There is an error in the description of the option for:

-e, --expiredate EXPIRE_DATE

  The man page states:

An empty EXPIRE_DATE argument will disable the expiration of the account.

  This is incorrect. The EXPIRE_DATE argument CANNOT be empty or it will take
the LOGIN as the value for the EXPIRE_DATE.

  Instead, the correct use is "-e -1" or "--expiredate -1" where "-1" (-one)
is provided as the EXPIRE_DATE value.

See, e.g.: https://stackoverflow.com/a/30769911/3422102

-- 
David C. Rankin, J.D.,P.E.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help