Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Novlib 3.30 Online Reference - <b> grant</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 GRANT
------------------------------------------------------------------------------
 Purpose:
 Emulate the Novell GRANT.EXE command line utility.

 Syntax:
 GRANT < see NetWare reference manual for list >

 Parameters:
 See NetWare reference manuals for parameters

 Returns:
 None.
 NWErrorGet() returns non-zero if an error occurs.

 Description:
 GRANT is a CA-Clipper 5.x UDC to emulate the NetWare GRANT.EXE command
 line utility, which grants directory trustee rights to users.

 Example:
 // To grant user DAVE read, open and search rights:

 #include "novlib.ch"
 GRANT READ OPEN SEARCH TO USER DAVE
 if ( NWErrorGet() = 0)
    ? "Access rights for user Dave granted successfully"
 endif

 // To perform the same operation using variables:

 #include "novlib.ch"
 AccessStr = "READ OPEN SEARCH"
 UserStr = "DAVE"
 GRANT &AccessStr TO USER &UserStr
 if ( NWErrorGet() = 0)
    ? "Access rights for user Dave granted successfully"
 endif

 Notes:
 NOVLIB50.PRG needs to be compiled and linked to your program when
 using this command.

 Appropriate trustee access rights are required.

See Also: DirEffectiveRightsGet() DirUserAdd()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson