Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!cornell!batcomputer!itsgw!steinmetz!uunet!mcvax!philmds!leo
From: leo@philmds.UUCP (Leo de Wit)
Newsgroups: comp.bugs.misc
Subject: Bug in Ultrix 2.0:setting the sticky bit
Keywords: tricky sticky
Message-ID: <552@philmds.UUCP>
Date: 5 Jul 88 13:01:54 GMT
Reply-To: leo@philmds.UUCP (Leo de Wit)
Organization: Philips I&E DTS Eindhoven
Lines: 13

The open system call allows setting the sticky bit to non-root users,
for example

   close(open(filename,O_WRONLY|O_CREAT|O_TRUNC,512));

creates a file with sticky bit set. But, according to sticky(8):

     Only the super-user can set the sticky bit.

B.T.W. the chmod(1) command does (correctly) not allow setting the
sticky bit for non-root users.

     Leo.