[ILUG] Caching programs
[ILUG] Caching programs
kevin lyda
kevin at suberic.net
Thu Sep 6 01:44:41 IST 2001
On Thu, Sep 06, 2001 at 12:45:31AM +0100, Paul Jakma wrote:
> On Wed, 5 Sep 2001, kevin lyda wrote:
> > yes, use chmod 1755 binary or chmo +t binary (depending on how you like
> > to sed modes on files). it sets the sticky bit which tells the kernel
> to be really pedantic, it's the "saved /t/ext" bit.
uh, no. it's the sticky bit. to really be pedantic (and correct) see
the following list. if you consider that 01000 makes code segments sticky
in binaries and files sticky in directories, the name makes more sense.
btw, endeavoring to make this useful, www.freebsd.org has a link to man
pages for pretty much any unix system in common use or of historical
importance. it's a great tool for reading up on things that might
be poorly documented on a linux system. forkpty was one call i read
up on there that i couldn't find decent docs for locally. also a lot
of gnu utils use info for things bsd systems document (properly imho)
in man pages. anyway chmod and the sticky bit through the ages:
http://www.freebsd.org/cgi/man.cgi?query=chmod&apropos=0&sektion=0&manpath=Unix+Seventh+Edition&format=html
http://www.freebsd.org/cgi/man.cgi?query=chmod&apropos=0&sektion=0&manpath=SunOS+4.1.3&format=html
http://www.freebsd.org/cgi/man.cgi?query=sticky&sektion=8&apropos=0&manpath=OpenBSD+2.9
http://www.freebsd.org/cgi/man.cgi?query=chmod&apropos=0&sektion=0&manpath=OpenBSD+2.9&format=html
http://www.freebsd.org/cgi/man.cgi?query=chmod&apropos=0&sektion=0&manpath=NetBSD+1.5&format=html
http://www.freebsd.org/cgi/man.cgi?query=chmod&apropos=0&sektion=0&manpath=4.4BSD+Lite2&format=html
http://www.freebsd.org/cgi/man.cgi?query=chmod&apropos=0&sektion=0&manpath=Darwin+1.3+PPC&format=html
or even the chmod section 2 man page on a linux system:
http://www.freebsd.org/cgi/man.cgi?query=chmod&apropos=0&sektion=2&manpath=Red+Hat+Linux%2Fi386+7.1&format=html
the odd man out is the gnu docs for chmod. they're wrong since they
fail to document the behaviour of the sticky bits in directories.
the openbsd chmod and sticky man pages do this the best - from a brief
overview i've found openbsd's man pages to be the best at documentation.
particularly for suystem setup, security and programming. i suppose
that's because security, to a large degree, depends on good documentation.
kevin
--
kevin at suberic.net simple four line sigs -
fork()'ed on 37058400 bandwidth friendly; nice to do.
meatspace place: home some admins clueless.
http://suberic.net/~kevin --netiquette haiku 2001
More information about the ILUG
mailing list
Read this without the formatting .