Operating System - HP-UX
1830250 Members
2723 Online
110000 Solutions
New Discussion

What would change the file date on an executable in hp-ux?

 
SOLVED
Go to solution
Dennis Lee_2
New Member

What would change the file date on an executable in hp-ux?

What would change the file date on an executable in hp-ux?
1) Recompile

what are the other ways of changing the file date?

-Dennis
8 REPLIES 8
Rita C Workman
Honored Contributor

Re: What would change the file date on an executable in hp-ux?

Could be something as simple as someone doing a
'touch' on the file....

Rita
James R. Ferguson
Acclaimed Contributor

Re: What would change the file date on an executable in hp-ux?

Hi Dennis:

In additon to 'touch'ing the file, if you copy (cp) it and then copy it back to itself without using the '-p' option of 'cp', the modification timestamp will change.

...JRF...
Dennis Lee_2
New Member

Re: What would change the file date on an executable in hp-ux?

thanks for the info on cp.
ok...but I have copied a file from one volume to another without the modify date changing...what other ways of "touching" the file are there? The file is executed by multiple users many times a day and I am concerned that it has been modified from the baseline. The file has been exactly the same date time stamp for a year and recently it has changed to a later date.

-Dennis
MANOJ SRIVASTAVA
Honored Contributor
Solution

Re: What would change the file date on an executable in hp-ux?

Hi Dennis

1. Recompile.
2. Touch.
3. Copy.
4. COpying from another media .

Manoj Srivastava
Rita C Workman
Honored Contributor

Re: What would change the file date on an executable in hp-ux?

If a user has the permissions to 'w' than the user could simple do the command:
touch
...or as was mentioned cp..

But let's say the executable is SQL...and the user has SQL privileges, then they could go in and view...and make changes and save the changes there as well.
Check your file permissions...and....if it's SQL based, check the rights you've granted and to whom.

Just a thought,
Rita

A. Clay Stephenson
Acclaimed Contributor

Re: What would change the file date on an executable in hp-ux?

Hi Dennis:

I'll bet someone cd'ed to the wrong directory and did a make which would do all the things listed above or a relink would have done it.

Clay
If it ain't broke, I can fix that.
Bill Hassell
Honored Contributor

Re: What would change the file date on an executable in hp-ux?

Restore a copy of the executable to another directory and use sum to test it. If the values are different than replace the executable with the old version. The permission and ownership of the DIRECTORY as well as the file itself determine who can modify the program file. Are there too many user that know the root password?


Bill Hassell, sysadmin
Wodisch
Honored Contributor

Re: What would change the file date on an executable in hp-ux?

Hello Dennis,

could be someone has just "relinked" your code
files? This happens fairly often with Oracle
and Baan IV code files...

Just my $0.02,
Wodisch