Add a User

Required User Role: User with administrator privileges

To see and copy the full command for your specific operating system, see the Command Quick Reference.

Usage

To add a new Tenable Nessus user, use the following command:

# nessuscli adduser

When you add a user, you are prompted for the username, password, administrative rights, and rules. Tenable Nessus rules limit a user’s scanning range.

When running nessuscli adduser on Tenable Nessus Professional or Tenable Nessus Expert, you are prompted for the user to have Administrator privileges. On Tenable Nessus Manager, you are prompted for the user to have System Administrator privileges. If you wish to set another user type in Tenable Nessus Manager, you must use the user interface.

Note: You cannot have multiple user accounts in Tenable Nessus Professional or Tenable Nessus Expert.

Follow the prompts. The following is example output for Linux:

# /opt/nessus/sbin/nessuscli adduser

Login: nessususer

Login password:

Login password (again):

Do you want this user to be a Nessus 'system administrator' user (can upload plugins, etc.)? (y/n) [n]: y

When you are adding a new user, Tenable Nessus prompts you for User Rules. Tenable Nessus has a rules system that allows you to restrict the hosts and ports that can be scanned and the plugins that can be used in scans. Administrators can set the rules on a per-user basis.

After you set the username, password, and administrator privileges, you are prompted to set any Tenable Nessus rules:

User rules

----------

nessusd has a rules system that allows you to restrict the hosts that nessususer has the right to test. For instance, you may want to allow the user to scan any system by default.

 

Please see the Nessus Command Line Reference for the rules syntax

 

Enter the rules for this user, and enter a BLANK LINE once you are done : (the user can have an empty rules set)

 

Login : nessususer

Password : ***********

This user will have 'system administrator' privileges within the Nessus server

Is that ok? (y/n) [n]: y

User added

To configure the user with default rules, enter default.

To allow the user to test anything by default, enter default accept.

Note: A blank rule set also allows the user to test anything.

For more information on rule syntax, see Network and Port Rules and Plugin Rules.

After you enter the desired rules, you are prompted to confirm your new user setup:

Login : nessususer

Password : ***********

This user will have 'system administrator' privileges within the Nessus server

Is that ok? (y/n) [n]: y

User added

Command Quick Reference

For the full command for your operating system, see the following: