I'm looking for a quick way to list...
Articles and Tips: qna
01 May 2003
Q.
I'm looking for a quick way to list all file system trustees on a volume using Visual Basic 6 and Active X controls. I've written an application that parses the file system, checking the trustee assignments on every directory by using the NWVoladm control. However, it's taking forever to run, even on one server, and some of the servers have over 100 GB of data.
A.
It's faster to ask the server for all trustee assignments by user instead. Use the NWUsrGrp control to look up a user, then use the NWFileSysRights collection to list their trustee assignments.
See the following as an example:
Private Sub Command1_Click()
Dim Entry As NWUsrGrpLib.NWUser Dim Rights As NWUsrGrpLib.NWFileSysRights Dim i As Integer
Set Entry =NWUsrGrp1.FindUser("nds:\\ctree\users\jimg")
Set Rights = Entry.Rights("nds:\\ctree\servers\data_vol")
For i = 0 To Rights.Count - 1 List1.AddItem Rights.Item(i).Path DoEvents
Next
End Sub
You can automate the feeding of usernames and volume names.
* Originally published in Novell AppNotes
Disclaimer
The origin of this information may be internal or external to Novell. While Novell makes all reasonable efforts to verify this information, Novell does not make explicit or implied claims to its validity.