in reply to Re: Setting permissions as text file is created
in thread Setting permissions as text file is created
Having had a bit more time to think on this (also more caffine), I still think a mask of 0666 with sysopen is less than desirable for a couple of reasons:
- what if your umask is not set sanely?
- what if your umask changes?
If you don't supply a mask to sysopen it will just create the file and apply the umask at create time. Personally, I think paranoia is good and chmoding the file immediately after the create to most restricted mode possible while still making the file available to those processes and/or users that need to access the file is the best policy.
CC
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Setting permissions as text file is created
by Abigail-II (Bishop) on Mar 17, 2004 at 23:42 UTC | |
|
Re: Setting permissions as text file is created
by Abigail-II (Bishop) on Mar 17, 2004 at 23:52 UTC | |
by coec (Chaplain) on Mar 18, 2004 at 01:19 UTC | |
by Abigail-II (Bishop) on Mar 18, 2004 at 01:48 UTC |