1 import jcifs.smb.*; 2 3 public class GetShareSecurity { 4 5 public static void main( String [] argv ) throws Exception { 6 SmbFile file = new SmbFile( argv[0] ); 7 ACE[] security; 8 9 security = file.getShareSecurity(true); 10 System.out.println("Share Permissions:"); 11 for (int ai = 0; ai < security.length; ai++) { 12 System.out.println(security[ai].toString()); 13 } 14 System.out.println("Security:"); 15 security = file.getSecurity(true); 16 for (int ai = 0; ai < security.length; ai++) { 17 System.out.println(security[ai].toString()); 18 } 19 } 20 } 21 | Popular Tags |