Check your rights and roles using dzinfo

You can use the dzinfo command to view detailed information about your rights, roles, and role assignments. The dzinfo command allows you to view and capture the output from the command in a single window.

For example, if you are a user named billy in a zone called KHeadquarters, you would type:

dzinfo billy

The output would look similar to the following:

User: billy
Forced into restricted environment: No

  Role Name        Avail 	Restricted Env 
  ---------------  ----- 	-------------- 
  AdminRole 	    Yes   	Admin 
  /KHeadquarters 		/KHeadquarters             
  Windows          Yes   	Windows        
  Login/KHeadquar        	Login/KHeadqua 
  	ters                   		rters          
  ControlPanelAdm  Yes  	ControlPanelAd 
  in/KHeadquarter        	min/KHeadquart 
  	s                      		ers            
  UNIX             Yes   	None           
  Login/KHeadquar                       
  	ters                                  
  Windows          Yes   	Windows        
  Login/KHeadquar        	Login/KHeadqua 
  	ters                   		rters          
  UNIX             Yes   	None        
  Login/KHeadquar                       
  	ters            
                      
    Effective rights:
	Password login
	Non password login
	Allow normal shell
    Audit level:
	AuditIfPossible
    Always permit login:
	true

  PAM Application  Avail Source Roles         
  ---------------  ----- -------------------- 
  graphical        Yes   AdminRole/KHea 
  desktop                	dquarters            
  ftp              Yes   AdminRole/KHea 
                         	dquarters            
  telnet           Yes   AdminAdminRole/KHea 
                         	dquarters            
  sshd             Yes   AdminRole/KHea 
                         	dquarters            
  ssh              Yes   AdminRole/KHea 
                         	dquarters            
  *                Yes   UNIX                 
                         Login/KHeadquarters  

  SSH Rights       Avail Source Roles         
  ---------------  ----- -------------------- 
  dzssh-sftp       Yes   AdminRole/KHea 
                         	dquarters            
  dzssh-scp        Yes   AdminRole/KHea 
                         	dquarters            
  dzssh-exec       Yes   AdminRole/KHea 
                         	dquarters            
  dzssh-shell      Yes   AdminRole/KHea 
                         	dquarters            
  dzssh-*          Yes   AdminRole/KHea 
                         	dquarters 
           
Privileged commands:
  Name             Avail Command   Source Roles         
  --------------- ----- --------- -------------------- 
  dz_info/KHeadqu  Yes dzinfo     AdminRole/KHea 
  arters                             dquarters            
  emergency_acess  Yes su - root  AdminRole/KHea 
  /KHeadquarters                     dquarters            
  emergency_acess  Yes su - root  UNIX               
  /KHeadquarters                  Login/KHeadquarters  
  emergency_acess  Yes su - root  Windows              
  /KHeadquarters                  Login/KHeadquarters  

Commands in restricted environment: 
  Name             Avail Command   Run As     
  ---------------  ----- --------- ---------- 
  emergency_acess  Yes   su - root self       
  /KHeadquarters                                          

Commands in restricted environment: 
ControlPanelAdmin/KHeadquarters
  Name             Avail Command   Run As     
  ---------------  ----- --------  ---------- 
  (no commands have been configured for 
   ControlPanelAdmin/KHeadquarters)

Commands in restricted environment: 
AdminRole/KHeadquarters
  Name             Avail Command   Run As     
  ---------------  ----- --------- ---------- 
  dz_info/KHeadqu  Yes   dzinfo    self       
  arters                                                  
  emergency_acess  Yes   su - root  self       
  /KHeadquarters                                          

Commands in restricted environment: 
Windows Login/KHeadquarters
  Name             Avail Command    Run As     
  ---------------  ----- ---------- ---------- 
  emergency_acess  Yes   su - root  self       
  /KHeadquarters