Hi all. Please, help me. In my JAVA programm I read files and their permission. I use (dos ?) command "cacls".
and output is: 'C:\testPerm.txt COMPANY\John:R COMPANY\Mike OI)(CI)F COMPANY\READERGRP:R Everyone:F
I read this output into String variable and process it. "John" and "Mike" is (single) user, it's no problem. But "READERGRP" is user's group. I need detect who is in group "READERGRP", but I don't know how do it. Please, any advice, idea. My OS is W2K. Thank You.
I think you will have to stick with 'exec'ing W2K utilities to achieve this. There is a resource kit utility "showmbrs" that will do what you want. But you will have to parse the output. Also remember that groups may have other groups as members so you may have to write a recursive solution. Sounds like a painful task.