Re: touch modifies read-only files

2003-01-31 Thread Cameron Simpson
On 22:59 30 Jan 2003, Todd A. Jacobs <[EMAIL PROTECTED]> wrote: | On Thu, 30 Jan 2003, Rigler, S C (Steve) wrote: | > I guess I must have an evil vi on all of my machines, because I've been | > doing this for some time (using ":w!" to override read-only permission | > when I own the file). | | The

RE: touch modifies read-only files

2003-01-30 Thread Todd A. Jacobs
On Thu, 30 Jan 2003, Rigler, S C (Steve) wrote: > I guess I must have an evil vi on all of my machines, because I've been > doing this for some time (using ":w!" to override read-only permission > when I own the file). The problem is that if you have write permissions on the directory, you can a

RE: touch modifies read-only files

2003-01-30 Thread Rigler, S C (Steve)
2003 9:46 PM To: [EMAIL PROTECTED] Subject: Re: touch modifies read-only files | 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. Not so. Unless your vi (vim probably) is doing evil things like un

Re: touch modifies read-only files

2003-01-30 Thread Cameron Simpson
On 00:45 30 Jan 2003, nate <[EMAIL PROTECTED]> wrote: | 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

RE: touch modifies read-only files

2003-01-30 Thread Cameron . Davidson
nate wrote on Thursday, 30 January 2003 18:46: > 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 s

Re: touch modifies read-only files

2003-01-30 Thread nate
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

touch modifies read-only files

2003-01-29 Thread Dan Bar Dov
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? Dan -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=un