set

system admin

system admin

Use this command to create or edit a system admin on your FortiGate system. Using this command you can set:

the administrator’s password

the administrator’s permission level

the administrator’s trusted hosts which determine which network addresses the administrator can use to access the FortiMail unit

Syntax

set system admin username <name_str> domain <domain_str> password <password_str> permission {readonly readwrite} sshkey {<key_str> ‘remove’} trusthost <trusthost_ipmask> webmode {basic advanced}

Keywords and Variables

Description

 

 

username <name_str>

Enter the name of the administrator account being created or edited.

domain <domain_str>

Enter the domain the administrator belongs to.

password <password_str>

Enter the password for the administrator account.

permission

Select administrator permission. readonly allows the administrator to

{readonly readwrite}

only inspect settings, while readwrite also allows changing settings.

sshkey

Enter the SSH key string for the admin user.

(<key_str> ‘remove’)

Enter ‘remove’ to remove the current SSH key.

trusthost <trust_ipmask>

Enter the host address and netmask from which the administrator can log

 

in to the web-based manager. If you want the administrator to be able to

 

access the FortiMail unit from any address, set <trust_ipmask> to

 

0.0.0.0 0.0.0.0.

webmode (basic advanced)

Select either basic or advanced interface mode as the default webmode

 

interface when logging in to this admin account.

History

FortiMail v3.0

New.

FortiMail v3.0 MR3 Added sshkey and webmode keywords.

Related topics

set system option

set user

FortiMail™ Secure Messaging Platform Version 3.0 MR4 CLI Reference

 

06-30004-0420-20080814

301

Page 301
Image 301
Fortinet 3.0 MR4 manual System admin, Set system option Set user