I was wondering whether there were any methods (creative or otherwise) where a bash script could be executed by anyone via /usr/bin - but theyre not able to see the coding inside the scripts
i.e i have a script
which contains the code:
i need it so that particular users can execute abc123
but if they tried to do: nano /usr/bin/abc123 - they would be unable to execute the script.
One thing i thought of - but not sure of - is if for example i had
which was only executable by root (?)
then have a 777 symlink /usr/bin/abc123 pointing to /home/JohnSmith/abc123
not sure if something like that'd work
Any assistance would be greatly appreciated. Thanks.