I run a encrypted shell script through crontab, while checking for process of script through ps -ef | grep script_name it is showing process along with script code in plain text
# ps -ef | grep test_script.x
root 5134 2901 0 12:16 pts/3 00:00:00 ./test_script.x -c
#!/bin/bash if [ `echo $?` == 0 ]; then echo "This is my test script" apt-get update else echo "This is end test script" fi sleep 3 ./test_script.x
root 5164 15802 0 12:16 pts/0 00:00:00 grep --color=auto test_script.x
sudo
in the computer you are using? Have other people physical access to the computer you are using? Please consider these aspects of security. See also this link, https://askubuntu.com/questions/981812/are-user-files-still-private-when-two-sudo-users-exist-in-ubuntu – sudodus Dec 04 '17 at 06:47