Code: Select all
cat /etc/passwd | cut -d: -f1 | sort
Is possible get list of users by time+date of creation?
Code: Select all
cat /etc/passwd | cut -d: -f1 | sort
Code: Select all
chage -l root
chage -l root | head -1
passwd -S root
passwd -S root | awk -v user=root '{ if ( $1 == user ) { printf "%s\n", $3; } }'
The format stores only integral values and unit is days.man shadow wrote:long int sp_lstchg; // days since Jan 1, 1970 password was last changed