There is no limit to the number of variables you can define using Cmd_Alias. And it need not be NETWORKING or LOCATE. You can give any useful name.

Once you have defined all the variables using the Aliases feature, you have to provide the user specifications.

User Specifications

Defining the user specifications is the most important part of the /etc/sudoers file. It defines which users can run what software on which machines.

The syntax for user specification is as follows.

user MACHINE=COMMANDS

There is no space on either side of the '=' symbol in the above syntax.

The following are a few examples of user specification rules in the /etc/sudoers file.

## Allow root to run any commands anywhere.
root ALL=(ALL) ALL

## Allow people in the wheel group to run all the commands
## without a password.
%wheel ALL=(ALL) NOPASSWD: ALL

By default SUDO requires that a user authenticate him or herself before running a command. This behaviour can be modified via the NOPASSWD tag as shown in the example above. Alternately, you can use the PASSWD tag to reverse the situation.

## Allow members of the users group to shutdown this system.
%users localhost=/sbin/shutdown -h now

Predefined Tags used in the /etc/sudoers file

PASSWD - Used to indicate the user needs to enter his password to run the command.