[jcifs] Quick question
Michael B. Allen
miallen at eskimo.com
Sat Nov 23 13:39:44 EST 2002
On Fri, 22 Nov 2002 13:52:15 -0600
"Scott Francis" <scott.francis at newisys.com> wrote:
> New to the list and using jCIFS. Looked over the javadoc stuff so I think I already found my answer (being no), but wanted to throw this out to the group first. Question: Is there a way to find and change ownership of a file using jCIFS.
No. The concept of file ownership is not supported in the standard CIFS
command set. This requires DCE/RPC which is has not been implemented
nor are there plans to implement it.
> Basically I have a process that runs as a generic windows user when called via a sockets connection from joe.user in a UNIX environment. When the windows process is finishing I'd like to be able to chown the file ownership of the files created/modified (which are physically living on a Linux box...but mounted via Samba as a windows Networked drive) back to the user who is calling the process.
> Any clues on this one? I'm not seeing any methods corresponding to this type of functionality so I'm doubting that it is possible under the current implementation.
> Thanks for any answers regardless.
> Scott Francis
A program should be written to model the concepts of the task it
performs rather than the physical world or a process because this
maximizes the potential for it to be applied to tasks that are
conceptually similar and, more important, to tasks that have not
yet been conceived.
More information about the jcifs