Previous PageNext Page

Chapter 5 - Using Attributes for Security

Overview of the SETATTR Program

Using Attributes to Control Access

Note: You must have Write access (VINES view) or Make Changes access (Macintosh view) to the parent directory of a file or subdirectory to be able to set the attributes on that file or subdirectory.

Table 5-1. VINES Attributes

Caution: If the Sharing attribute is ON for a parent directory, any new file will inherit the ON setting. It is not recommended that you set this attribute to ON because an application may assume that DOS open mode restrictions are being obeyed. See the next section of this chapter, "VINES Attributes," for more information on using the Sharing and Execute Only attributes.

Table 5-2. DOS Attributes

Table 5-3. Macintosh Attributes

VINES Attributes

Sharing Attribute

Execute Only Attribute

Using SETATTR from the System Prompt

Syntax of SETATTR Command

SETATTR [+ or - attribute] [DOS pathnames] [/SHOW] [/HELP]

Table 5-4. Abbreviations for Attributes

Example Turning On Read Only

SETATTR +RO JANUARY.RPT

+RO E:STATUSJANUARY.RPT

Example Turning Off Read Only

SETATTR -RO FEBRUARY.RPT MARCH.RPT

-RO E:STATUSFEBRUARY.RPT -RO E:STATUSMARCH.RPT

Example Using Show

SETATTR JANUARY.RPT /S

+RO +NR +ND E:STATUSFEBRUARY.RPT

Example Using /HELP

SETATTR /H

Using the SETATTR Menu

Note: VFS does not maintain a record of a "Saved" file system view for SETATTR as it does with the SETARL program.

Table 5-5. Mapping DOS and Macintosh Attributes to VINES Attributes

Table 5-6. Mapping Macintosh Attributes to VINES Attributes

Accessing the Set Attributes Menu

SETATTR [DOS pathnames] [/View:file_system]

Example Specifying a View

SETATTR JANUARY.RPT /V:M

Figure 5-1. Set Attributes Screen

Figure 5-2. Set Attributes Screen

Change Path. Display the attributes of another directory or file.

Edit Attributes. Change the status of attributes for the directory or file shown in the Path field.

Copy Attributes. Select and copy attributes to another directory or file.

Changing the Path

Figure 5-3. Set Attributes Data Entry Screen

Figure 5-4. Select Pathname Screen

Editing Attributes

Figure 5-5. Set Attribute Screen

Figure 5-6. Set Attribute Confirmation Screen

Copying Attributes

Figure 5-7. Copy Attributes Selection Screen

Figure 5-8. Select Destination Screen

Note: You can copy attributes of files to other files and directories. If you copy from a file to a directory, you receive a warning message if any of the file attributes that do not apply to the directory are ON.

Using SETATTR on 4.xx File Services

Use the SETATTR command at the DOS command line as you would with 4.xx VINES file services.
Use the menu interface designed for 4.xx VINES file services, shown below.

Figure 5-9. Set Attributes Screen

Using SETATTR on a Local Drive

At the DOS command line, change to the local drive and directory. Then enter the SETATTR command as you would if you were working with files on a network drive or directory, that is, enter the pathnames of the files with the SETATTR command. The command responds with information about the DOS attributes of the files.
When using the menu interface, use the Change Path command to change to specify the pathnames of the files you want to work on. Use the other commands in the same way as described above. The menu reflects that the file volume is on a local drive and shows only the appropriate DOS attributes.

C:
SETATTR C:\MYFILES\CHAP02.DOC

Figure 5-10. Set Attributes Screen

Previous PageTop Of PageNext Page