Path: utzoo!mnetor!uunet!husc6!bbn!uwmcsd1!ig!agate!ucbvax!CINCOM.UMD.EDU!todd From: todd@CINCOM.UMD.EDU ("TODD AVEN") Newsgroups: comp.os.vms Subject: rudimentary ACL/Rightslist interface in C for sale: $0.00 Message-ID: <8802052154.AA25318@ucbvax.Berkeley.EDU> Date: 27 Jan 88 14:13:00 GMT Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: "TODD AVEN" Organization: The Internet Lines: 28 It may well be that it's only worth $0.00, but I had to do a lot of programming to support ACLs on files and Rightslist modifications recently in support of a new system we're developing. If anyone out there needs to set or remove ACLs from files, modify the VMS Rights database, or modify process rights lists, I'd like to save you the grief and aggravation of trying to interpret the sometimes lousy documentation. It's not a lot of code, but I'll postpone posting to the net pending proper prompting from plenty of people :-). These are the routines: add_group(identifier) - Add the specified identifier to the Rights database (sys$system:rightslist.dat) add_user_to_group(username,identifier) - Grant the identifier to the user in the Rights database and to all current processes belonging to user remove_user_from_group(username,identifier) - Inverse of previous routine remove_group(identifier) - Inverse of add_group grant_id_to_user(user,ident) - Grant the identifier to all current processes belonging to user. revoke_id_from_user(user,ident) - The inverse operation. Regards, Todd Aven the Software Sweatshop ------ -------