How Do I Make a File Unreadable in Linux?
Contents How Do I Make a File Not Readable in Linux? 3 Answers. Change the Permissions on the File So That Only the Owner Can Read It and That Group and...
Contents
How do I make a file not readable in Linux?
3 Answers. Change the permissions on the file so that only the owner can read it and that group and all-users (others) can’t read/write/execute it. This will make the file readable and writable by only the owner of the file.
How do I make a script executable but not readable?
You can setup a script so that it’s not readable by the user, but still executable. The process is a little drawn out, but it’s doable by making an exception in /etc/sudoer so that the user can run the script as yourself temporarily without being prompted for a password.