<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">I just wrote a little script, that will echo a message to the user, if it doesn't have enough permission:<br><br>$ if ! [ "$(env LC_MESSAGES=C ifconfig wlan0 down | grep -i denied)" == "" ]; then echo "no permission"; fi<br>SIOCSIFFLAGS: Permission denied<br>$ sudo su<br>[sudo] password for USER: <br># if ! [ "$(env LC_MESSAGES=C ifconfig wlan0 down | grep -i denied)" == "" ]; then echo "no permission"; fi<br># <br><br>but it won't works<br><br>why?<br></td></tr></table><br>