Function NnetObjSec() Foundation

Changes the security of a bindery object.

Syntax
NnetObjSec( <cObjectName>             , ;
            <nObjectType>             , ;  // Default: OBJ_USER
            <nSecurity>               , ;
            [<cFileServer|nConnectID>]  ;  // Default: NnetSname()
          ) --> lSuccess
Return

Returns .T. if the object's security is set successfully otherwise .F.

Description

The user must have write access to the object to change its security.

<cObjectName>

An uppercase string of max. 48 characters = the object's name.

<nObjectType>

#define constant from XBTNETW.CH beginning with OBJ_ is used to specify the object's type.

<nSecurity>

Eight bit value. The four high order bits define write privileges, the low order bits define read access rights to the bindery object. Each 4 bits in both nibbles have the following meaning:

Bits for high and low nibble of <nSecurity>
Bits set Hex Description
0000 0 Access for any user, even if not logged in
0001 1 Access for all users logged in to the file server
0010 2 Access for users logged in using a password
0011 3 Access for users with supervisory rights
0100 4 Access for the network operating system only

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.