Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

command to change user expiry date

sudo usermod -e "YYYY-MM-DD" username

#to remove the expiry  date
sudo usermod -e "" linuxize

#to verify
sudo chage -l linuxize
Source by linuxize.com #
 
PREVIOUS NEXT
Tagged: #command #change #user #expiry #date
ADD COMMENT
Topic
Name
1+3 =