I've used bash for years but I 've stuck with theprivileged mode that it can be configure with the set command. For example:set -pI've read the bash man page but it's somewhat obscure.For example let's considere the following script#! /bin/bash -pping 192.168.1.1the permission of this file is as follows:-rwxr-xr-x. 1 root operador 80 mar  2 23:20 /scripts/privileged.shAnd then as a non-root user I run /scripts/privileged.shSo I run: ps -Cping -ocomm,egroup,euser,ruser,ruser,rgroupCOMMAND         EGROUP   EUSER    RUSER    RUSER    RGROUPping            operador operador operador operador operadorOK, you can change the mode, but anyway Linux drops privileges:[root@server ~]#  chmod 4755 /scripts/privileged.sh [root@server ~]# ls -l /scripts/privileged.sh-rwsr-xr-x. 1 root operador 79 mar  2 23:33 /scripts/privileged.shSo I run the script as non-root user, and then I get:[root@server ~]# ps -Cping -ocomm,egroup,euser,ruser,ruser,rgroupCOMMAND         EGROUP   EUSER    RUSER    RUSER    RGROUPping            operador operador operador operador operadorSo I've found this option useless, please could you correct me, if I misunderstood anything?
Privileged mode in bash
bash;options;privileges