I see a lot document suggest to use
chage on debian and ubuntu,
apt-get update && apt-get install chage does not install the package, e.g.
root@ubuntu:~/Desktop# apt-get install chage Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package chage
I found that I need to edit
/etc/shadow how exactly I need to edit
root line below, so that my linux does not ask my to change the password on the each log in?
root@ubuntu:~# cat /etc/shadow root:$6$U.dnAQ2f$FV$/aF23Yn.sq1BYVjinlI9251nAarzqGKES18RxadV5bTakcfCNYAMljUwSaQZYV0r4MttHF0SFO7ebq3E1m/:0:0:99999:7:::
I edited the root line as
It stills asks password on the log in
I also followed the instructions on http://www.lifelinux.com/setting-up-password-aging-in-linux/
root@ubuntu:/home# chage -m 7 -M 60 -W 7 -I 7 root root@ubuntu:/home# chage -m 0 -M 99999 -I -1 root root@ubuntu:/home# change -l root -bash: change: command not found root@ubuntu:/home# chage -l root Last password change : password must be changed Password expires : password must be changed Password inactive : password must be changed Account expires : never Minimum number of days between password change : 0 Maximum number of days between password change : 99999 Number of days of warning before password expires : 7
what do I need to edit to remove
password must be changed? I also did
chage -I -1 -m 0 -M 99999 -E -1 root but it did not help