Focal Point
[SOLVED] Access is denied when copying files to a backup server

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/9761030213

December 30, 2008, 05:39 PM
KentO
[SOLVED] Access is denied when copying files to a backup server
When I run a backup job from local host, it copies files from the production server (focsrvr) to the backup server (srv01) using the following format:

CMD COPY \\focsrvr\ibi\apps\ajmaster\actarc11.foc \\srv01\ajl\ajmaster\

But when I run the copy on the production server (focsrvr), I get the message "Access is denied". Why will the command run from localhost and not from the production server?

I also tried using "APP COPYF" to backup the files with the following code:

APP MAP DDPROD \\focsrvr\ibi\apps\ajmaster
APP MAP DDBKUP \\srv01\ibi\apps\ajmaster
APP PREPENDPATH DDPROD
APP PREPENDPATH DDBKUP
APP SHOWPATH
APP COPYF DDPROD ACTARC11 FOC DDBKUP ACTARC11 FOC

I get the message "SYNTAX ERROR" on the "APP COPYF" command. Is something wrong with this code.

I am on release 7.6.0.

Kent

This message has been edited. Last edited by: Kerry,


Windows2003 Server, WebFOCUS 7.7.02 Developers Studio and MRE
December 31, 2008, 05:24 AM
<JG>
quote:
APP COPYF DDPROD ACTARC11 FOC DDBKUP ACTARC11 FOC

should be
APP COPYF DDPROD ACTARC11 FOCUS DDBKUP ACTARC11 FOCUS

As far as the copy issue is concerned make sure the the userid that the
WebFOCUS request is being run with has write access to the backup server folders.
December 31, 2008, 07:15 AM
AlexU
When you run from localhost it is you id that has the write privileges to the server. Make sure that the user id used from the WebFOCUS instance has the same privileges.


WF 7703M, XP/Win7, MRE, RC, BID, PMF, HTML, PDF, Excel 2000/7/10
December 31, 2008, 10:21 AM
KentO
Our server guy says the server privileges are okay. Is he wrong, or is there a WebFocus table that needs to be changed to allow the copy from one server to another?
Thanks, Kent


Windows2003 Server, WebFOCUS 7.7.02 Developers Studio and MRE
January 02, 2009, 08:05 AM
CLH
The ID being passed to the server depends on the security mode that your webfocus server is running in. For Example with security opsys it passes the effective id of the user logged in so that is the id that would need permission to write to the backup server. If security is LDAP for example then it uses the service account id. (The id that the webfocus service is running under) There is a chart that I can't find right now in the admin guide that shows what id is passed depending on what security method is in effect.


Webfocus 8.0.7 on Windows