Discussion Locked

Grant rights in a batch file on NW 5.x

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

The grant.exe utility from NW 3.x-4.x allowed me to write batch files to revoke or grant access to files. It doesn't work in NW 5.x. Is there an equivalent way to do this in NW 5.x?

The batch file to grant rights contained the line:
grant r wc e m f for server_vol1:directory to groupname /sd /f

And the command line to block access was:
grant n for server_vol1:directory to groupname /sd /f

This allowed us to keep everyone but the payroll person out of the program while processingwas being done, then let them back in when processing was completed without involving the IT staff.

5 replies

by jimbb

Download TBACK3.EXE from Novell. It contains a trustee-backup utility, that you can run on a volume or directory. This utility creates a batch-file called TRESTORE.BAT, and that will give you an excellent example for the kind of batchfile you're looking for. This batchfile uses RIGHTS.EXE, as mentioned in another answer, so when you run it you just need to be sure that you have a search-path to the public-directory.
Jim

This discussion is closed to new replies.