Re: [idea] chmod 0 file secrets

Brian Brombacher <[email protected]>
Newsgroups gmane.os.openbsd.misc
Message-ID <[email protected]>
I am assuming you still own the file as USER, you never specified.  If so, then Hacker_A, logged in as USER, can run chmod 600 on the file and be able to read it.  Changing modes does not require root/doas.

-Brian

> On Aug 10, 2026, at 11:53 AM, 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.
>
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.