Can't extract expiry days from shadow
Hi,
Afraid I are having problems trying to extract the number of days to a users password expiry date to use in another application. I can find no utility on RH like prwarn under SCO. I have tried with a test script which works fine under root but as the user I have permission problems. I have Ush52 $ ll /etc/shadow -r-------- 1 root root 1289 Dec 12 08:47 /etc/shadow Ush52 $ ll expiry -rwsr-xr-x 1 root root 80 Dec 12 07:30 expiry Ush52 $ cat expiry EXPDAYS=`cat /etc/shadow | grep $USER` export EXPDAYS Ush52 $ expiry gsb cat: /etc/shadow: Permission denied Ush52 $ Appreciate any assistance Thanks |
All times are GMT -5. The time now is 07:33 AM. |