I've checked the archives for a solution to my problem, but could not find one.
We've downloaded, onto Solaris 2.8, the free Sharity version for evaluation purposes prior to purchase.
On the unix command line and, also, via a JSP application, I can successfully list ('ls') the files in the /CIFS subdirectory. On the unix command line, I can also successfully 'cat' the file contents. However, from within the JSP application, I am unable to cat the file contents. Instad I get the 'Forbidden: You don't have permission to access /batches/002CanBlockANIAccessPoint0410.txt on this server error' page.
The corresponding CIFS directory is a soft-link to a directory that is visible from within the JSP/Tomcat environment. I've changed the setting with the Sharity program that enables faked soft links. The permission on the Windows XP side are set to allow access to everyone. I don't know what else to try.
Hopefully I've worded myself clearly. Does anyone have any suggestions for me?
If I understand this correctly, JSP can roughly be seen as a web server as far as Sharity is concerned. Web servers and other internet servers usually run as a specific user, often as "nobody". If you try to access files from the Unix shell, you do this from your own account, not as the same user as JSP. You have authenticated to the server, the JSP user (probably) has not. You therefore have access to the files and the JSP user has not, regardless of what Sharity shows in the file's Unix permissions.
To solve this problem, you must 'cifslogin' to the server as the same user as JSP runs. I would recommend that you either read the docs or use 'ps' to find out as which user JSP runs. Then su to that user and do a cifslogin to the server. If the login for the account is disabled (which it probably is), you can su to it in two steps: First su to root, then to that user.
Regards, Christian.
-- Dipl.-Ing. Christian Starkjohann Objective Development mailto:[EMAIL PROTECTED] | http://www.obdev.at/
_______________________________________________ Sharity-talk mailing list [EMAIL PROTECTED] To unsubscribe see http://at.obdev.at/mailman/listinfo/sharity-talk
