%FIO_ChmodHpux function


Function
The function sets an access rights to a file (on HPUX and Linux platforms).
Declaration
BOOL %FIO_ChmodHpux(
   TEXT in fileName,
   INT in access
 )
Parameters
fileNameFile name.
accessAbsolute access mode.
Return value
HP Linux platform:
  • @TRUE - if the access rights have been changed,
  • @FALSE - some error occurred

Other platforms:
  • @TRUE
Absolute mode
An absolute mode consists of three digits, the first one applies the rights to owner, the second one to group and the third one to others.
Each access mode is characterized by its value. The numbers are formed by a sum of these values, where:
1 - execute,
2 - write,
4 - read.


Numerical permissions:

ValuePermission
0---
1--x
2-w-
3-wx
4r--
5r-x
6rw-
7rwx
Napíšte komentár