(imported topic written by SystemAdmin)
I have a file /etc/security/passwd file that I have been parsing but it doesn’t work for the last user listed in the file. Can anyone point me to the error of my ways?
DETAIL:
Q: concatenation “|” of lines of file “passwd”
A: root:|%09password = junk|%09lastupdate = 1350336859||user1:|%09password = morejunk|%09lastupdate = 1356041428||user2:|%09password = evenmorejunk|%09lastupdate = 1339625785||user3:|%09password = junk|%09lastupdate = 1354819887
T: 463
Q: (if ((preceding text of firsts “:” of (following text of first “user1:” of (concatenation “|” of lines of file “passwd”) as string)) contains regex "password
] *=[
*morejunk") then (false) else (true))
A: False
T: 419
Q: (if ((preceding text of firsts “:” of (following text of first “user2:” of (concatenation “|” of lines of file “passwd”) as string)) contains regex "password
] *=[
*morejunk") then (false) else (true))
A: True
T: 543
Q: (if ((preceding text of firsts “:” of (following text of first “user3:” of (concatenation “|” of lines of file “passwd”) as string)) contains regex "password
] *=[
*morejunk") then (false) else (true))
E: Singular expression refers to nonexistent object.
T: 580