[EMAIL PROTECTED] (Kai Gro�johann) writes:

> On Wed, 6 Sep 2000, Pete Forman wrote:
> 
> > It works on AIX 4.3.2, Solaris 2.6, IRIX 6.5.5m, ISC 4.0.
> 
> Somebody told me it does not work on Solaris when you don't have write
> permissions on the file.  In fact, as non-root, "chmod u=u /" is a
> good test.  Failed for me on Solaris 2.6.
> 
> But this method is out anyway, since it changes the ctime of the file.�
> Oh, well. 
> 
> kai
> 
> � Whatever a ctime might be!  I guess I'll have to read up on that
>   part of Unix again.

There are 3 types of timestamps associated with a file:

atime: When the file was last accessed
ctime: When the file's status was last changed (chmod,...)
mtime: When the file's data was last modified

So, as a side note, Solaris is IMHO right to complain when you try
to change a file you don't have the rights to access:
sol2.7> chmod u=u /; echo $?
chmod: WARNING: can't change /
1

-- 
Andi Hechtbauer                                           [EMAIL PROTECTED] 
root                                          voice: +49 941 942 77 23
SPiN                    http://www.spin.de/     fax: +49 941 942 77 22  
------ PGPf16: B4 FC 30 E0 31 2F BC F5  38 D0 A2 FC EA A9 82 5D ------

Reply via email to