Article View: comp.bugs.sys5
Article #357Re: touch: got to be owner if use date string
From: Jonathan E. Quist
Date: Tue, 12 Feb 1991 21:30
Date: Tue, 12 Feb 1991 21:30
22 lines
1325 bytes
1325 bytes
In article <DANJ1.91Feb12091029@cbnewse.ATT.COM> Dan_Jacobson@ATT.COM writes: >spotted on Amdahl UTS 5.2.6.... > >$ ls -l lcircle10.300pk >-rw-rw-rw- 1 dvorak dvorak 4340 Feb 12 07:51 lcircle10.300pk >$ id >uid=47941(danj1) gid=47941(danj1) fsid=8(45262) >$ touch lcircle10.300pk >#that worked, why not this? works when I'm owner... >$ touch 1231235999 lcircle10.300pk >touch: cannot change times on lcircle10.300pk touch() calls utime(file,0) to set the current time. to set a particular time, it calls utime(file,&utimbuf), with the contents of utimbuf set to the desired time. The first requires only write permission; the second requires ownership. (ref. utime(2)) -- Jonathan E. Quist INTERACTIVE Systems Corporation jeq@i88.isc.com Naperville, IL DoD #094/ '71 CL450-K4 "Gleep"
Technical Details
Message-ID:
<1991Feb12.213024.15634@i88.isc.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!motcsd!mcdcup!mcdchg!tellab5!laidbak!jeqReferences:
<DANJ1.91Feb12091029@cbnewse.ATT.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!motcsd!mcdcup!mcdchg!tellab5!laidbak!jeq From: jeq@i88.isc.com (Jonathan E. Quist) Newsgroups: comp.bugs.sys5 Subject: Re: touch: got to be owner if use date string Message-ID: <1991Feb12.213024.15634@i88.isc.com> Date: 12 Feb 91 21:30:24 GMT References: <DANJ1.91Feb12091029@cbnewse.ATT.COM> Sender: usenet@i88.isc.com (Usenet News) Organization: INTERACTIVE Systems Corporation, Naperville, IL Lines: 22