zendar писал(а):Есть сервер с NetWare6.5 SP8
Задача в том, чтобы создать утилиту на Java с возможностью выбора из дерева конкретного пользователя или контейнер с пользователями и вывести отчет по правам на файлы и каталоги. В nwadmin этого нет. Кто знает - физически эти права хранятся во внутренней базе сервера?
...
Права на файловую систему (ACL) хранятся в самой файловой системе (т.н. метаданные - там же хранятся квоты, владелец и т.п.), никаких отдельно стоящих "внутренних баз сервера" не было и нет - интересующая вас информация распределена по ФС.
А у вас какая нужда в написании утилиты, да ещё непременно и на яве? Есть (небесплатная) утилита от JRBSoftware, которая делает ровно то, что вам требуется:
Displaying Trustee Assignments
Trstlist displays trustee assignments for multiple objects, or for selected directories or files. Its features include:
• Can display trustees for files, directories, all directories in a tree, for an entire volume, or all volumes on a server.
• Can process multiple files servers in a single command.
• Can display trustees for any class of object on any or all volumes on a server.
• Can display inherited rights filters.
• Optional sorting by user, directory or rights.
• Optional filtering by trustee rights e.g. trstlist can list only those trustees with supervisory rights.
• Can display assignments for a path and each of its parent directories.
• Can list the trustee rights as settrust or rights commands allowing them to be saved in a form in which they can be restored via a batch file.
• Can optionally list the trustee rights as settrust or rights commands allowing them to be saved in a form in which they can be removed via a batch file.
• Can optionally list trustee rights for an object which are inherited through security equivalence. As a user is security equivalent to groups belonged to, this includes trustee rights inherited via group membership. It also includes trustees of each of the container objects forming the object’s distinguished name, plus [Public] and [Root]. Every object is security equivalent to each of its parent objects.
• Can display only those objects, files or directories without trustees.
• Can display trustee assignments for all volume objects in an eDirectory tree.
• Displays paths in the DOS or LONG name space.
• Can produce comma delimited output with the fields and their order determined by the user.
• The GUI version allows changing of rights and inherited rights filters by right clicking in the appropriate column.
• Can display rights in Windows format e.g. RWXD.
• Can display trustees as “JRButils for AD” adsettrust commands, or as Windows cacls or icacls commands. An option is included to produce icacls commands granting non-propagated GR+GE rights to parent directories.