Executing Admin Privilege operation on server side.

Balaji Rao <[email protected]> Sun, 2 Nov 2014 02:31:56 -0800
Newsgroups gmane.network.samba.java
Message-ID <[email protected]>
Hi,

I need some help in solving a access related issue.

I am implementing an extension to jcifs - ability to create symlink on remote file server using 
SMB_CON_NT_TRANSACT and fsctl -> FSCTL_SET_REPARSE_POINT.

Creating symbolic link is an admin command and requires privilege for other users to execute.
SE_CREATE_SYMBOLIC_LINK_NAME
"SeCreateSymbolicLinkPrivilege"

On the server side, for symbolic link creation, I have set the permission to Everyone, and as any user can create a symbolic link.

Now, through jcifs, if I issue FSCTL_SET_REPARSE_POINT, I am getting "access is denied".  
 
Any help on how to solve this? How to tell server that client has SE_CREATE_SYMBOLIC_LINK_NAME privilege?

Thanks and Regards,