I have my shell script ready to be run.
But my problem is when I need user to run my shell script and not the Ubuntu's built-in file
For example, I want user to run my passwd shell script and not Ubuntu's passwd at /usr/bin/passwd
I have written alias on the .bashrc which look like this
My question is how do I make user to run my passwd instead of Ubuntu's passwd? How do I disable the real passwd file?
Off-topic question, how do I override sudo?
Because my shell script contains sudo which will print out the required password at first run.