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.

Appendix A: Command Line Reference<br />

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

596<br />

Admn:file filename<br />

File Name<br />

File Type (such as exec, file, conf, util, diry)<br />

Creating Domain<br />

Checking directory types<br />

To check Type Enforcement directory types, enter the following command:<br />

/bin/ls -dy directory_name<br />

You will see output similar to the following:<br />

$Sys:diry directory_name<br />

$Sys indicates that the directory was created in the $Sys domain. This is a<br />

domain used by the operating system for various tasks.<br />

Changing a file’s type (chtype)<br />

Use the chtype command to change a file’s type. Normally, you will be in the<br />

Administrative kernel when changing a file’s type. It is always possible to<br />

change a file’s type in the Administrative kernel rather than the Operational<br />

kernel because the Administrative kernel does not use Type Enforcement. The<br />

Operational kernel uses Type Enforcement, which may prevent you from<br />

changing a file’s type.<br />

There may, however, be situations where it would be convenient to change a<br />

file’s domain while in the Operational kernel without having to boot to the<br />

Administrative kernel. The following procedures describe how to change a file’s<br />

type from either the Administrative or the Operational kernel.<br />

Changing file types in the administrative kernel<br />

To change a file’s type in the Administrative kernel, follow the steps below.<br />

1 Attach a keyboard and monitor directly to your <strong>Sidewinder</strong> <strong>G2</strong> system.<br />

If your system has multiple keyboard/monitor connection ports, you must<br />

attach the keyboard and monitor into the same keyboard/monitor connection<br />

port pair (that is, attach both items to the front connection ports or both<br />

in the back connection ports).<br />

2 Enter the following command at the UNIX prompt:<br />

chtype domain:type filename<br />

For example, entering the command:<br />

chtype Admn:exec myprogram<br />

changes the domain and type for the myprogram file to Admn:exec.

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

Saved successfully!

Ooh no, something went wrong!