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 Nessus user, use the following command:

# nessuscli adduser

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

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

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, Nessus will prompt you for User Rules. Nessus has a rules system that allows you to restrict the hosts and ports that can be scanned as well as 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 will be prompted for setting any Nessus rules:

User rules

----------

nessusd has a rules system which allows you to restrict the hosts that nessususer has the right to test. For instance, you may want him to be able to scan his own host only.

 

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 set the default, use the word default.

To accept to test anything by default:

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 put in the desired rules, you will be 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: