General Question
How do I get my bash script to fail if it's being run as root?
Asked by bomyne (639)
May 23rd, 2010
I’m writing a bash script and I want to make sure it fails to run if the root user is the one running it. How do I do this?
Observing members:
0
Composing members:
0
2 Answers
Answer this question
This question is in the General Section. Responses must be helpful and on-topic.
Have a question?
Ask Fluther!