Maybe comparing Files.getAttribute(p, "unix:uid") and UnixSystem().getUid()? Is there a cross-platform way? I noticed Files.getOwner(), but seems UserPrincipal has no method of its own and all its implementation classes are non public. Thanks Max