*BSD News Article 33530


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!spool.mu.edu!howland.reston.ans.net!usenet.ins.cwru.edu!lerc.nasa.gov!purdue!mozo.cc.purdue.edu!staff.cc.purdue.edu!bj
From: bj@staff.cc.purdue.edu (Ben Jackson)
Newsgroups: comp.os.386bsd.questions
Subject: Re: Sticky bit on directory question
Date: 30 Jul 1994 20:45:22 GMT
Organization: Purdue University
Lines: 16
Message-ID: <31ee52$pvh@mozo.cc.purdue.edu>
References: <CtrKx8.857@helios.physics.utoronto.ca>
NNTP-Posting-Host: staff.cc.purdue.edu

In article <CtrKx8.857@helios.physics.utoronto.ca>,
Jacques Legare <jacques@helios.physics.utoronto.ca> wrote:
>I have the permissions on my /usr/local/lib/TeX/fonts/pk directory as follows
>
>drwx---r-t    2 root     tex          1024 Jul 30 13:26 p
>
>but an unprivilidged user can _still_ not create files in this directory.

In order to create files in a directory, a user must have write privs
for it.  The sticky bit just prevents users from deleting files and
directories owned by other people.  The mode you probably want on that
directory is 1777 (rwxrwxrwt), just like /tmp.  If you make it 1707,
users in group tex won't be able to create files in it.

--
Ben Jackson, bj@cc.purdue.edu