18.07.2013 Views

Sidewinder G2 6.1.2 Administration Guide - Glossary of Technical ...

Sidewinder G2 6.1.2 Administration Guide - Glossary of Technical ...

Sidewinder G2 6.1.2 Administration Guide - Glossary of Technical ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Changing file types in the operational kernel<br />

Appendix A: Command Line Reference<br />

Working with files on the <strong>Sidewinder</strong> <strong>G2</strong><br />

To change a file’s type in the Operational kernel, follow these steps:<br />

1 At a <strong>Sidewinder</strong> <strong>G2</strong> command prompt, log in and enter the following<br />

command to switch to the Admn role.<br />

srole<br />

2 Copy the file you want to change.<br />

cp file1 newfile<br />

3 Delete the original file.<br />

rm file1<br />

4 Change the new file to the target domain and/or file type.<br />

chtype domain:filetype newfile<br />

5 Rename the file.<br />

mv newfile file1<br />

Auditing the use <strong>of</strong> chtype commands<br />

The <strong>Sidewinder</strong> <strong>G2</strong> audits each failed occurrence <strong>of</strong> a chtype command.<br />

However, you can also audit successful chtype events. Use the following<br />

commands to enable or disable the auditing <strong>of</strong> successful chtype commands.<br />

• To enable auditing <strong>of</strong> successful chtype commands, enter the following<br />

command:<br />

sysctl -w kern.auditchtype=1<br />

• To disable auditing <strong>of</strong> successful chtype commands, enter the following<br />

command:<br />

sysctl -w kern.auditchtype=0<br />

Note: Whether you enable or disable auditing <strong>of</strong> successful chtype events,<br />

failed chtype events are always audited.<br />

Creating your own scripts<br />

While operating in either the User or Admn domains, you can create your own<br />

scripts for use on the <strong>Sidewinder</strong> <strong>G2</strong>. Scripts created in the User domain will be<br />

executable by the Admn and User domain but no other domain. Scripts created<br />

in the Admn domain will not be executable by anyone until the type is changed<br />

to Admn:scrp using the chtype command.<br />

597

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!