In most Linux distros I've used when you type for example ifconfig as a normal user, you get a prompt message telling you that only root can execute such command.
In Debian, it only says command not found (because it's looking for it in /usr/bin/).
I'm wondering if there is any way for prompt a message, like "ifconfig must be run as root" or something like that.


ifconfigas a regular user. I have never seenifconfigissuing such a prompt message in its default capacity. – Chris Down Dec 9 '12 at 17:44*/sbindon't need superuser privilege. If a command needs superuser priviledge, it will tell you. It's safer not to run a command as root, so I'd rather issue the opposite warning like beware, this is run as root when not needed. – Stephane Chazelas Dec 9 '12 at 19:14