🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.bugs.v7
Article #79

sort tempfile permissions, cont.

#79
From: utzoohenry
Date: Mon, 17 May 1982 17:14
11 lines
1009 bytes
As several people have pointed out, it's better to use umask rather
than chmod -- no timing windows and it's arguably a bit cleaner.
Although there is also a problem with the bad guys precreating the
file (especially since sort's file usage tends to be predictable),
the business of fstatting it to check its ownership is a bit ugly;
better would be the solution available in 3.0 (a mode to creat/open
which guarantees failure if the file already exists).  This is not
a big worry with me, although it might be at places with more active
snoopers.  Such places should also consider the mod several people
have made which uses the sticky bit on a directory to mean "can't
unlink files you don't own".
Technical Details
Message-ID: <bnews.utzoo.2051>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
From: utzoo!henry
Newsgroups: net.bugs.v7
Title: sort tempfile permissions, cont. 
Article-I.D.: utzoo.2051
Posted: Mon May 17 17:14:06 1982
Received: Mon May 17 17:14:06 1982
Subject: sort tempfile permissions, cont.
Date: Mon, 17 May 1982 17:14:06 +0000
Message-ID: <bnews.utzoo.2051>