Dan Bar Dov said: > If the file is owned by the user, touch will modify its last-mod-time. > This is contrary to my understanding that a read only file cannot be > modified (unless I insist as in rm -f) > > Is this standard on all Unixes?
if the file is owned by the same user that is 'touching' it, that user can override any permissions. try, e.g. vi a read-only file by the user, then try to save it, it will say it's read only, then save it with :w! it will happily override it. I think it's up to the particular program if it wants to deny access to the file based on permissions, I think most tend to ignore readonly permissions, becuase if the user really wants to write to it, they have full rights to change the permissions of the file and then write to it. of course if the file is not owned by the owner, then the system should block access to it, and the app won't be able to override. I am not sure if this is standard, but you shouldn't rely on this sort of test with touch. I don't feel like powering up my solaris machines but my FreeBSD 4.7 system shows the same behavior. My RS/6000 and SGI Indy aren't plugged in either. nate -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list