From owner-freebsd-questions Fri May 15 09:48:58 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA26219 for freebsd-questions-outgoing; Fri, 15 May 1998 09:48:58 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from pau-amma.whistle.com (s205m64.whistle.com [207.76.205.64]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA26209 for ; Fri, 15 May 1998 09:48:51 -0700 (PDT) (envelope-from dhw@whistle.com) Received: (from dhw@localhost) by pau-amma.whistle.com (8.8.7/8.8.7) id JAA10169; Fri, 15 May 1998 09:47:46 -0700 (PDT) (envelope-from dhw) Date: Fri, 15 May 1998 09:47:46 -0700 (PDT) From: David Wolfskill Message-Id: <199805151647.JAA10169@pau-amma.whistle.com> To: john@mailhost.cas.unt.edu, questions@FreeBSD.ORG Subject: Re: Sendmail permissions seemingly randomly change. Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >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