Just like we add a user with administrator privilege or to server operators local group in windows so that he can add/edit/delete files/folders on the server, can I give such privilege to a user in Linux?
I want to close a network file which is open and situated on a Linux machine with NetFileClose API. Here the clients are all windows machines. I tested NetFileClose API successfully on a windows network, but had to add client ids to administrators group on the windows server machine otherwise I got ACCESS_DENIED_ERROR.
So in Linux when I tried to invoke NetFileClose API with servername as name/IP of Linux server, it returned with ACCESS_DENIED_ERROR. Also have a doubt regarding second parameter of NetFileClose API, Which is fileid as Linux doesn't have a concept like file id, instead it uses inode number. So Can I forcefully close a file opened on a Linux share(samba) with the use of winapi NetFileClose?