[ale] Bash script help

Jim Kinney jim.kinney at gmail.com
Wed Mar 12 08:19:07 EDT 2008


student with root access tinkering around inside /etc/password?!?!?

On Wed, Mar 12, 2008 at 6:40 AM, Jim Lynch <ale_nospam at fayettedigital.com>
wrote:

> Doctor Who wrote:
> > I'm trying to return the value of when the last time the root password
> > was changed.  The script would do something like:
> >
> > 1) more /etc/shadow | grep root | awk -F: '{print $3}'
> > 2) Take above value and add 1
> > 3) Multiple the result by 86400
> > 4) Substitute the value above after the @ below
> > 5) date -d @XXXX +"%B %d %G"
> > 6) Give me the output value of this
> >
> > I would like to keep this done using bash.  Any help appreciated.
> > _______________________________________________
> > Ale mailing list
> > Ale at ale.org
> > http://mail.ale.org/mailman/listinfo/ale
> >
> >
> Homework?
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
>



-- 
-- 
James P. Kinney III
CEO & Director of Engineering
Local Net Solutions,LLC
http://www.localnetsolutions.com

GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics)
<jkinney at localnetsolutions.com>
Fingerprint = 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C 6CA7
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.ale.org/pipermail/ale/attachments/20080312/60e8e846/attachment.html 


More information about the Ale mailing list