You are here: Nessus Manager and Professional > User Management Commands > Add a User (Nessus Command Line)

Add a User

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. To add a new Nessus user, run the nessuscli adduser command.

When running nessuscli adduser on Nessus Manager, you will be prompted for the user to have “system administrator” privileges. With Nessus Professional, you will be prompted for the user to have “administrator” privileges.

In Nessus Manager, if you wish to set another user types, you must use the UI.

# /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/system 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.

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

Copyright © 2017. Tenable Network Security, Inc. All rights reserved. Tenable Network Security, Nessus, SecurityCenter Continuous View, Passive Vulnerability Scanner, and Log Correlation Engine are registered trademarks of Tenable Network Security, Inc. All other products or services are trademarks of their respective owners.