In message <19991228165015.94446.qmail_at_hotmail.com> "FARAZ JAMSHED" writes:
: >>In message <Pine.LNX.4.20.9912251656310.23074->>100000_at_pet.notbsd.org>
: >>"Stanislav N. Vardomskiy" writes:
: >>: This just *might* be a problem.
: >
: >Not the way you think. You have no control over the name of the file
: >created.
: >
: >Warner
:
: yes we could have control by setting the right UMASK settings...
How? It creates the file in /etc. You must have write permissions to
the directory in order to rename files, which you won't have unless
you are already root. Setting the permissions on the *file* won't
change this at all. You still can't rename it (and I did try just
now). And since chfn, et al use mkstemp, you can't race it either.
Warner
Received on Dec 28 1999