[jcifs] Updating ACE[] using jcifs

Michael B Allen ioplex at gmail.com
Mon Nov 21 12:29:48 MST 2011


On Mon, Nov 21, 2011 at 4:37 AM, talis <rtalisman at gmail.com> wrote:
> Hi All,
>
> I want to update file permissions (revoke) using jcifs. For example i want
> to remove 'takeOwnershipAccessRight' (0x00080000) permission, which means to
> set appropriate bit in the mask to '0'.
>
> As i see in jcifs, there is no implementation to setting the permission
> mask.
>
> Does anyone knows how it can be done in jcifs? Any known implementations?

Hi Talis,

I am not aware of any no. And it's not a trivial change because you
need to encode security descriptors. It's probably a good way to
corrupt disks too. Tread carefully.

Mike

-- 
Michael B Allen
Java Active Directory Integration
http://www.ioplex.com/


More information about the jCIFS mailing list