Hi,
I guess I need some clarification from Miva Inc. on this one.
To quote the manual's definition of the fchmod/schmod functions:
"fchmod() works like UNIX chmod and changes permissions to
mode_number on the file named by source_path in the data directory.
schmod() does the same in the script directory. The mode number must
be in the format nnnn (decimal) or 0nnnn (octal)."
As far as I have found Unix has two forms of chmod:
An absolute form which uses octal numbers (ie: 755) to represent the
permissions given to the three user types; owner, group and other.
A symbolic type which uses character groups (ie: -rwx-rx-rx) to
represent the permissions given to the three user types. Some
references also mention a forth user type, "all of the above" when
defining the symbolic form of chmod.
I can find no references to a "decimal form" of chmod in Unix.
A modest amount of testing reveals no easily discernible difference
between Miva's decimal and octal permission mode numbers
except for the number of leading zeros. Which brings me to my two
questions:
What exactly is the difference between Miva's decimal and octal
permission mode numbers and where is it appropriate to use each form?
Why does Miva have leading zeros in the permission mode numbers. Is
it something to do with Unix's "sticky bits? Can we do anything
useful with them?
I guess that last one is really more than one, sorry :)
Thank you,
Brian R. Bullock
[email protected]
Function Junction
<A HREF ="http://wwwebweaver.com/func_junc/">http://wwwebweaver.com/func_junc/</A>
The Miva Xbase3 Vending Machine
<A HREF ="http://wwwebweaver.com/db_vending/">http://wwwebweaver.com/db_vending/</A>
Comment