Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP 9000 Networking: HP FTAM/9000 User's Guide > Chapter 3 Using Command-Line FTAM

Changing File Attributes with fcattr

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

The fcattr command is similar to the HP-UX chmod command.

About fcattr

The FTAM specification defines many attributes that describe an FTAM file. The fcattr command gives you the ability to modify many of these attributes for a file. To change the attributes of a file, you must have at least FTAM change_attribute permission for the file.

The fcattr command can perform the actions in Table 3-4 “fcattr Actions and Command Options”. Use the associated fcattr command option to request an action.

Using fcattr

The syntax for the fcattr command is as follows:

fcattr file -dinflsv new_attribute [-dinflsv new_attribute ...]

You can use one or more options in a command (one at a time, each followed by its argument). See Table 3-4 “fcattr Actions and Command Options” and the examples that follow it.

Table 3-4 fcattr Actions and Command Options

Action

Command Option

Option Argument

Delete an element from the file's access control list. (Access control is discussed in chapter 5.)

-d

For HP-UX responders, this must be user, group, or other.

Insert an element into the file's access control list. (Access control is discussed in chapter 5.)

-i

For HP-UX responders, this must be user, group, or other, followed by a comma, followed by an action/concurrency string (see chapter 5).

Change the name of the file.

-n

New file name (Character string)

Change maximum permitted size of the file.*

-f

New size (integer, octets) (Numeric string)

Change the file's legal qualification.*

-l

New legal qualification (Character string)

Change the file's storage account.*

-s

New account (Character string)

Change the file availability.*

-v

-v I or -v i :Immediate -v d or -v D :Deferred

 

*HP FTAM/9000 does not keep track of these attributes for local files. The option is for use with other FTAM responders.

Examples:

This example illustrates how to rename a file using fcattr. The local file called oldfile is renamed to newfile.

$ fcattr oldfile -n newfile

The next example renames the remote file current.dat on the host called chicago. The new name is history.dat, on the same remote host.

$ fcattr chicago:current.dat -n history.dat

This example adds access control for the file's owner (lisa), granting all permissions. It also allows group members to have read and read_attribute permissions:

$ fcattr lisa@chicago:/ftamfiles/report -i user,RPXEACD -i group,RA

This example removes the access control placed on the file in the previous example:

$ fcattr lisa@chicago:/ftamfiles/report -d user -d group

This example changes the account to region1sales and future filesize to 2,000,000.

$ fcattr atlanta:marketing.sales -s region1sales -f 2000000

The remote host access methods are described under "Specifying Remote Names" earlier in this chapter.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1997 Hewlett-Packard Development Company, L.P.