243 reputation
24
bio website kylemilnes.com
location
age
visits member for 4 years
seen Feb 25 '13 at 11:49

Aug
14
awarded  Yearling
Feb
13
awarded  Necromancer
Apr
6
answered Apache2: How do I restrict access to a directory, but allow access to one file within it?
Mar
23
answered How do I ask screen to behave like a standard bash shell?
Dec
6
comment dump/output/list Linux password expiry info for all users
Recently I also discovered the usefulness of passwd -S here is a nice one-liner cut -d: -f1 /etc/passwd | xargs -n1 -- passwd -S
Aug
1
awarded  Teacher
Jul
29
accepted dump/output/list Linux password expiry info for all users
Jul
29
comment dump/output/list Linux password expiry info for all users
Thanks for helping me with the improved technique, this is what I'm going with: cut -f 1 -d: /etc/passwd | xargs -n 1 -I {} bash -c ' echo -n {}" "; chage -l {} | fgrep "Password expires"' | column -t
Jul
28
comment dump/output/list Linux password expiry info for all users
OK, so in the servers /etc/login.defs the following is true PASS_MAX_DAYS 180. This could well of been done as part of hardening guide I followed post install :)
Jul
28
awarded  Supporter
Jul
28
comment dump/output/list Linux password expiry info for all users
Hey! Nice one for the answer. I found it most excellent. Did exactly what I needed and more. Also nice and short too! I'd been playing with this, what do you think? for user in $(cat /etc/passwd |cut -d: -f1); do expiry=$(chage -l $user | fgrep 'Password expires'); if ! echo $expiry | fgrep -q never; then echo -e "$user\t"$expiry; fi; done | column -t
Jul
28
comment dump/output/list Linux password expiry info for all users
Hey, I guess it might of been a PAM enforcement, I'll have to check that. Perhaps it was the way in which the specific ways users added and the way PAM enforced certain rules. I recall setting up PAM fairly stringently.
Jul
28
asked dump/output/list Linux password expiry info for all users
Dec
29
awarded  Scholar
Dec
29
accepted Ways to parse NCSA combined based log files
Dec
21
awarded  Student
Dec
21
answered Ways to parse NCSA combined based log files
Dec
21
asked Ways to parse NCSA combined based log files