Re: [idea] chmod 0 file secrets

Stuart Henderson <[email protected]>
Newsgroups gmane.os.openbsd.misc
Message-ID <[email protected]>
On 2026-08-10, broke <[email protected]> wrote:
> I was thinking whether or not you really need encrypted secrets in a file
> when you could possibly just use 'chmod 0' to hide it and view it using
> doas. any app with user USER won't be able to access without doas password
> and all I need to do is have a good user password.
>
> Tell me if I am wrong though, just a thought.

$ echo test > f
$ chmod 000 f
$ cat f
cat: f: Permission denied
$ chmod 644 f
$ cat f
test
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.