Я обнаружил, что systemctl list-units --full --all не отображает отключенные службы, поэтому автозаполнение не
# check if enabled
systemctl is-enabled <service_name>
# enable
systemctl enable <service_name>
Из man chage:
-E, --expiredate EXPIRE_DATE
Set the date or number of days since January 1, 1970 on which the
user's account will no longer be accessible. The date may also be
expressed in the format YYYY-MM-DD (or the format more commonly
used in your area). A user whose account is locked must contact the
system administrator before being able to use the system again.
Либо вы хотите провести несколько дней, либо строку YYYY-MM-DD.
Попробуйте также date +%F -d "+30 days", который выводит дату в течение 30 дней с «сегодня».
chage -E $(date +%F -d "+30 days") USER
Из man chage:
-E, --expiredate EXPIRE_DATE
Set the date or number of days since January 1, 1970 on which the
user's account will no longer be accessible. The date may also be
expressed in the format YYYY-MM-DD (or the format more commonly
used in your area). A user whose account is locked must contact the
system administrator before being able to use the system again.
Либо вы хотите провести несколько дней, либо строку YYYY-MM-DD.
Попробуйте также date +%F -d "+30 days", который выводит дату в течение 30 дней с «сегодня».
chage -E $(date +%F -d "+30 days") USER
Из man chage:
-E, --expiredate EXPIRE_DATE
Set the date or number of days since January 1, 1970 on which the
user's account will no longer be accessible. The date may also be
expressed in the format YYYY-MM-DD (or the format more commonly
used in your area). A user whose account is locked must contact the
system administrator before being able to use the system again.
Либо вы хотите провести несколько дней, либо строку YYYY-MM-DD.
Попробуйте также date +%F -d "+30 days", который выводит дату в течение 30 дней с «сегодня».
chage -E $(date +%F -d "+30 days") USER
Из man chage:
-E, --expiredate EXPIRE_DATE
Set the date or number of days since January 1, 1970 on which the
user's account will no longer be accessible. The date may also be
expressed in the format YYYY-MM-DD (or the format more commonly
used in your area). A user whose account is locked must contact the
system administrator before being able to use the system again.
Либо вы хотите провести несколько дней, либо строку YYYY-MM-DD.
Попробуйте также date +%F -d "+30 days", который выводит дату в течение 30 дней с «сегодня».
chage -E $(date +%F -d "+30 days") USER