This question already has an answer here:
How can I create a password-protected shell script for read/write access. It should also be executable by all users without the password. I have sensitive information in the script.
This question already has an answer here: How can I create a password-protected shell script for read/write access. It should also be executable by all users without the password. I have sensitive information in the script. |
||||
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
You will not be able to hide information in a shell script. To be execute the shell will have to be able to read the content. In a way or the other the user will be able to do the same. |
|||
|
sudo
? Or passwordless SSH? Please give more info. – Mat Apr 8 at 5:40/etc/myscript.sh
. And i'm authenticating the user based on his password to create/move a file and logging that info in a script So, there is a possibility that other users also can see what the script is doing. So, i just need to hide the script's content from reading or writing. – Maniv G Apr 8 at 5:44