This command, for use with LM-NT-OS/2 servers, allows you to view the current DOS attributes of a file. You can set or clear DOS attributes.
TNHOME/usr/bin
ruattr [-u username] [{-p password|-P}] [-C charset] [+{a|s|h|r}] [-{a|s|h|r}] //servername/object/path
-u username |
Specify the name of the user for the remote server. |
-p password |
Specify username's password on the command line. No subsequent password prompt appears. |
-P |
Prompt for username's password. The password does not appear as you type it. This option proves especially useful if you want to include the command but not the password in a batch file. |
-C charset |
Specify the client character set. If not specified, the character set defaults to builtin-codepage-437. Examples of valid character sets include: builtin-mac-roman builtin-iso-latin-1 builtin-unicode builtin-codepage-437 |
+ |
Set one or more of the attributes below. |
- |
Clear one or more of the attributes below. |
(Attributes) |
a -- Archive attribute s -- System attribute h -- Hidden attribute r -- Read-Only attribute |
servername |
Specify the name of the remote server. |
object |
Specify the name of a shared object on a remote LM-NT-OS/2 server. |
path |
Specify a full or relative directory and file on the remote server. The path specification permits the use of wildcards. |
To use this command, you must first start the LM-NT-OS/2 realm.
If you include neither an option to set attributes nor an option to clear attributes, UNIX returns the current attributes of the file.
File attributes always appear after modification.
Use the following command to show the attributes of net.exe in the directory split of the shared object client on the server country and prompt for a password, as user maple:
ruattr -u maple -P //country/client/split/net.exe |
Use the following command to modify the attributes of the file private.txt in the virtual root of the shared object shared on the server demopc, change it to a Read-Only, Hidden file, and clear the Archive bit, with password mypword:
ruattr -p mypword -a +rh //demopc/shared/private.txt |
Use the following command to clear the hidden attributes of all files in the shared object public on the server demopc, prompt for a password, and use the character set "shift-jis", as user Ajax:
ruattr -u Ajax -P -C shift-jis -h //demopc/public/*.* |