How to tell whether a bash script has root privileges
34456
How can a script check if it's being run as root?
35350
What is the number between file permission and owner in ls -l command output?
152966
How do I debug permissions?
75649
Bash script with execute permissions won't run with double click
125961
error in running bash script as root
32609
How to tell what method was used to log in (Password vs. Keyfile) from the bashrc
103377
How to create a user with root privileges in bash?
120413
How can I detect if the shell is controlled from SSH?
149444
How could I reach root after switching from bash to zsh?
79834
Run a script as root from apache
107312
How to use shell wildcards with sudo?
16283
How to make `sudo` preserve $PATH?
12861
Why does alias in /etc/bash.bashrc not apply to sudo?
52991
How do I run a command as root?
7556
How do I sudo a command in a script without being asked for a password?
40667
How do I gain root privileges?
103812
How to see the command attached to a bash alias?