18.07.2013 Views

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

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

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

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

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

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

be in the Administrative kernel when changing a file’s type. It is<br />

always possible to change a file’s type in the Administrative kernel<br />

rather than the Operational kernel because the Administrative kernel<br />

does not use Type Enforcement. The Operational kernel uses Type<br />

Enforcement, which may prevent you from changing a file’s type.<br />

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

change a file’s domain while in the Operational kernel without having<br />

to boot to the Administrative kernel. The following procedures<br />

describe how to change a file’s type from either the Administrative or<br />

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<br />

below.<br />

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

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

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

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

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.<br />

Changing file types in the operational kernel<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 />

Command Line Reference A-13

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

Saved successfully!

Ooh no, something went wrong!