* dates change, but not for root
@ 2004-04-15 14:19 Derek Gatherer
2004-04-15 15:42 ` SUMMARY: " Derek Gatherer
0 siblings, 1 reply; 2+ messages in thread
From: Derek Gatherer @ 2004-04-15 14:19 UTC (permalink / raw)
Hi managers
This morning I ran Sophos Sweep for Tru64 for the first time. It swept. I
had no viruses, which was reassuring. However, I appear to have been left
with an odd effect on the date/time stamp of files.
As myself:
# ls -lt
total 14
-rw------- 1 gath01d users 3055 Apr 15 09:28 aaconvert.pl
-rw------- 1 gath01d users 8407 Apr 15 09:28 any-screener.pl
-rw------- 1 gath01d users 493 Apr 15 09:28 out
-rw------- 1 gath01d users 493 Apr 15 09:28 testprot1.fa
lrwxrwxrwx 1 gath01d users 10 Jan 13 16:14 swiss@ -> /yd1/swiss
All files have redated to the time I ran the anti-virus scan, soft links
however retain their original date (links aren't scanned).
but then.....
su
# ls -lt
total 14
lrwxrwxrwx 1 gath01d users 10 Jan 13 16:14 swiss@ -> /yd1/swiss
-rw------- 1 gath01d users 493 Dec 23 2003 out
-rw------- 1 gath01d users 493 Dec 22 2003 testprot1.fa
-rw------- 1 gath01d users 3055 Nov 22 2003 aaconvert.pl
-rw------- 1 gath01d users 8407 Nov 20 2003 any-screener.pl
as root the correct dates are restored. Why have they been reset for
ordinary users? and how can I restore them so that ordinary users see the
correct dates like root?
Thanks as always for any help
Cheers
Derek
_________________________
Derek Gatherer Ph.D. Cert.Ed.
Computer Officer
Institute of Virology
Church St.
Glasgow G11 5JR
Phone: +44 141 330 6268
Fax: +44 141 337 2236
Email: d.gatherer@vir.gla.ac.uk
Website: http://www.vir.gla.ac.uk
^ permalink raw reply [flat|nested] 2+ messages in thread
* SUMMARY: dates change, but not for root
2004-04-15 14:19 dates change, but not for root Derek Gatherer
@ 2004-04-15 15:42 ` Derek Gatherer
0 siblings, 0 replies; 2+ messages in thread
From: Derek Gatherer @ 2004-04-15 15:42 UTC (permalink / raw)
Thanks to Spider Boardman, Kris Smith and Joseph Senulis for speedy replies.
I should have run sweep with --no-reset-atime. However, since I didn't,
and my ls happens to be aliased to ls -cF, I see the new atimes. Root does
not use the same aliases file as general users, and so still sees the
original times. The problem is temporarily curable by getting all users to
type unalias ls whenever they log in. The permanent solution is to remove
ls -cF from the aliases file (which I don't mind doing as I couldn't see
the advantage of it anyway).
Here's the bit from the sweep manual that I didn't spot:
______________________________
The following options may be prefixed with 'no-' to invert their meaning
(for example, '--no-reset-atime' is the inverse of '--reset-atime'. [*]
indicates the option is the default:
--reset-atime [*] : Reset file access time after SWEEPing
______________________________
Cheers
Derek
_________________________
Derek Gatherer Ph.D. Cert.Ed.
Computer Officer
Institute of Virology
Church St.
Glasgow G11 5JR
Phone: +44 141 330 6268
Fax: +44 141 337 2236
Email: d.gatherer@vir.gla.ac.uk
Website: http://www.vir.gla.ac.uk
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-04-15 15:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-15 14:19 dates change, but not for root Derek Gatherer
2004-04-15 15:42 ` SUMMARY: " Derek Gatherer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox