tmpwatch i /home/users

Grzegorz 'Dzikus' Sterniczuk grzegorz w webmedia.pl
Sob, 21 Kwi 2001, 09:15:58 CEST


On Thu, 19 Apr 2001 14:45:40 +0200, you wrote:
>Siemka,
>
>Rozwiązanie które proponujesz jest dobre. In fact, nie każdy może chcieć
>taką strukturę, dlatego na razie dorobię wsparcie dla tego co jest w tej
>chwili, czyli ~/tmp - potem do /tmp/users/. IMO warto się nad czymś takim
>jak /tmp/users/$user zastanowić w kontekście dystrybucji - chciałbym
>poznać inne opinie na ten temat. 

Przed chwilą znalazłem w bugtraq'u:

Hi all,

I have recently developed some patches to the Linux 2.2 kernels which
solve
the /tmp race problem without needing to define environment variables -
useful particularly for naive applications and scripts which dont use
TMPDIR and friends.

The patch creates "dynamic" symlinks, which point to different paths
depending on the user accessing them (for example, including the UID in
the
path name).  Such a link can be placed instead of /tmp and/or /var/tmp,
and
any other similar directories.  More usefully, these links can be
configured
to automatically create the directory they refer to if it does not exist.

This means you can create a directory such as /tmp_files, for example, and
have the /tmp link automatically create user directories in it on demand.
Default permissions and ownership can be specified.

The patches are available from http://www.datadeliverance.com in the Linux
Patches section, along with a full discussion of the issues involved.
Your
comments on the scheme are invited.

Cheers

		-Matthew

--
+--------------------------------------------------------------------------+
| Matthew Donaldson             http://www.datadeliverance.com             |
| Data Deliverance Pty. Ltd.    Email: matthew w datadeliverance.com         |
| 30 Musgrave Ave.              Phone: +61 8 8265 7976            _        |
| Banksia Park                  Fax:   +61 8 8265 0032     John  / \/      |
| South Australia 5091                                     3:16  \_/\      |
+--------------------------------------------------------------------------+


-- 
Grzegorz 'Dzikus' Sterniczuk - grzegorz w niewiem.org  http://hack.zone.to/
"Nikomu nie wolno drżeć przed nieznanym, gdyż każdy jest w stanie zdobyć
 to, czego mu potrzeba."



Więcej informacji o liście dyskusyjnej pld-devel-pl