Administrative files are edited with a trusted editor that incorporates auditing. This editor also prevents the user from executing shell commands and from saving to any file name other than the name of the original file.
Assume a role.
For details, see How to Enter the Global Zone in Trusted Extensions.
Open a trusted editor.
In Solaris Trusted Extensions (GNOME), do the following:
(Optional) To use gedit as the trusted editor, modify the EDITOR variable.
For details, see How to Assign the Editor of Your Choice as the Trusted Editor.
Use the command line to bring up the trusted editor.
# /usr/dt/bin/trusted_edit filename
You must provide a filename argument.
To create a new file, type the full path name for the new file.
When you save the file, the editor creates a temporary file.
To edit an existing file, type the full path name for the existing file.
If your editor provides a Save As option, do not use it. Use the editor's Save option to save the file.
To save the file to the specified path name, close the editor.