Displaying 3 results from an estimated 3 matches for "pwd_exp".
Did you mean:
pi_exp
2017 Feb 03
2
How to get password expiration?
Actually is there a way to show it more like a timestamp. It is hard to
compute days left with a date format like that. I guess I could use date to
do the conversion but I was wondering if there is a cleaner way
On Fri, Feb 3, 2017 at 8:51 AM, Rowland Penny via samba <
samba at lists.samba.org> wrote:
> On Fri, 3 Feb 2017 07:44:39 -0700
> Jeff Sadowski via samba <samba at
2017 Feb 03
0
How to get password expiration?
Sorry that was easy enough
let seconds=`date -d "${EXPDATE}" "+%s"`-`date "+%s"`
let days=$seconds/86400
echo $days > /na/homes/$1/.pwd_exp
On Fri, Feb 3, 2017 at 11:15 AM, Jeff Sadowski <jeff.sadowski at gmail.com>
wrote:
> Actually is there a way to show it more like a timestamp. It is hard to
> compute days left with a date format like that. I guess I could use date to
> do the conversion but I was wondering if the...
2017 Feb 03
2
How to get password expiration?
...ank you all so
much :-)
On Fri, Feb 3, 2017 at 11:22 AM, Jeff Sadowski <jeff.sadowski at gmail.com>
wrote:
> Sorry that was easy enough
> let seconds=`date -d "${EXPDATE}" "+%s"`-`date "+%s"`
> let days=$seconds/86400
> echo $days > /na/homes/$1/.pwd_exp
>
>
> On Fri, Feb 3, 2017 at 11:15 AM, Jeff Sadowski <jeff.sadowski at gmail.com>
> wrote:
>
>> Actually is there a way to show it more like a timestamp. It is hard to
>> compute days left with a date format like that. I guess I could use date to
>> do the con...