[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: world readable temp files and bash? set -C, noclobber (gnustandards
From: |
Michael V. Antosha |
Subject: |
Re: world readable temp files and bash? set -C, noclobber (gnustandards suggestion and/or question) |
Date: |
Wed, 26 Jan 2011 15:31:44 +0200 |
Hello, Ralf!
>> address@hidden But, anyway, how this prevents from creating world readable
>> files?
>
> Well, you can do that already by setting your umask appropriately.
>
>> address@hidden According to the bash man page, noclobber should prevent from
>> address@hidden unintentional truncating to zero size of existing files,
>> address@hidden but in case file doesn't exist, it just created. -- mivael
>
> Which is exactly what is intended here, no?
It seems, I didn't understood the meaning of "the security problem"
right. I've just done more searching, and have another question:
Is the problem mentioned in the standards the same with the one described here?
http://www.linuxsecurity.com/content/view/115462/151/
If yes, then, maybe, advice to use mktemp would be more appropriate?
What do you think?
http://www.gnu.org/software/coreutils/manual/coreutils.html#mktemp-invocation
http://www.linuxsecurity.com/content/view/115462/151/#mozTocId831804
--
Michael V. Antosha
http://identi.ca/mivael
- world readable temp files and bash? set -C, noclobber (gnustandards suggestion and/or question), Michael V. Antosha, 2011/01/24
- Re: world readable temp files and bash? set -C, noclobber (gnustandards suggestion and/or question), Ralf Wildenhues, 2011/01/25
- Re: world readable temp files and bash? set -C, noclobber (gnustandards suggestion and/or question), Karl Berry, 2011/01/25
- Re: world readable temp files and bash? set -C, noclobber (gnustandards suggestion and/or question),
Michael V. Antosha <=
- Re: world readable temp files and bash? set -C, noclobber (gnustandards suggestion and/or question), Karl Berry, 2011/01/26
- Re: world readable temp files and bash? set -C, noclobber (gnustandards suggestion and/or question), Ralf Wildenhues, 2011/01/27
- Re: world readable temp files and bash? set -C, noclobber (gnustandards suggestion and/or question), Michael V. Antosha, 2011/01/27
- Re: world readable temp files and bash? set -C, noclobber (gnustandards suggestion and/or question), Karl Berry, 2011/01/28
- Re: world readable temp files and bash? set -C, noclobber (gnustandards suggestion and/or question), Ralf Wildenhues, 2011/01/28