Date: Fri, 15 May 1998 09:47:46 -0700 (PDT) From: David Wolfskill <dhw@whistle.com> To: john@mailhost.cas.unt.edu, questions@FreeBSD.ORG Subject: Re: Sendmail permissions seemingly randomly change. Message-ID: <199805151647.JAA10169@pau-amma.whistle.com>
next in thread | raw e-mail | index | archive | help
>From: john@mailhost.cas.unt.edu
>Date: Fri, 15 May 1998 10:17:34 +0000
Not sure what's causing the changes, but:
>The changing of
>permissions doesn't make the file date change...
The inode maintains 3 timestamps per file (see /usr/include/sys/stat.h):
#ifndef _POSIX_SOURCE
struct timespec st_atimespec; /* time of last access */
struct timespec st_mtimespec; /* time of last data modification */
struct timespec st_ctimespec; /* time of last file status change */
#else
time_t st_atime; /* time of last access */
long st_atimensec; /* nsec of last access */
time_t st_mtime; /* time of last data modification */
long st_mtimensec; /* nsec of last data modification */
time_t st_ctime; /* time of last file status change */
long st_ctimensec; /* nsec of last file status change */
#endif
The change you're referring to (changing the mode of the file) is a
"file status change".
Here's an example:
shrimp[23]% ls -li foo
ls: foo: No such file or directory
shrimp[24]% touch -t 19881101 foo
shrimp[25]% ls -li foo
61733 -rw-rw-r-- 1 dhw eng 0 Sep 26 11:01 foo
shrimp[26]% ls -lic foo
61733 -rw-rw-r-- 1 dhw eng 0 May 15 09:33 foo
shrimp[27]% date && chmod o-w !$ && !! && date
date && chmod o-w foo && ls -lic foo && date
Fri May 15 09:34:58 PDT 1998
61733 -rw-rw-r-- 1 dhw eng 0 May 15 09:34 foo
Fri May 15 09:34:58 PDT 1998
shrimp[28]%
("man ls" may also be of use.)
david
--
David Wolfskill dhw@whistle.com (650) 577-7158 pager: (650) 371-4621
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805151647.JAA10169>
