Solved

Copy permission issue from server to server

Posted on 2006-07-11
9
321 Views
Last Modified: 2013-12-16
I need to copy a file from a server to another.  They are on the same network.  The source path is \\intranet\dfs\HR\EMPList.xls, and the target path is
\\IntraEDU\E:\EMPData.    This copy needs to done daily by the "system" (ColdFusion server).   I tried to copy and paste manually.  It worked for me.  Obviously, I have the full permissions to do so.  Then, when it is run on the Scheduled Task or Web Browser (ColdFusion web pages), it returns "Access is denied".
How do you find and check the account running the job and give the full permission for the copy?

any ideas?
0
Comment
Question by:ethanjohnsons
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 3
9 Comments
 
LVL 33

Expert Comment

by:NJComputerNetworks
ID: 17084575
In schedule task, you can select to run the command with other user RIGHTs.  
0
 
LVL 33

Assisted Solution

by:NJComputerNetworks
NJComputerNetworks earned 50 total points
ID: 17084595
0
 
LVL 33

Expert Comment

by:NJComputerNetworks
ID: 17084609
troubleshoot schedule takss:  http://www.jsifaq.com/SUBK/TIP5300/rh5324.htm
0
Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

 
LVL 14

Expert Comment

by:canali
ID: 17085381

If u set correctly the "run as" in Scheduled Task (local system account cannot access network shares) it's a solution (follow the NJ suggestion)

the other is change the coldfusion running context  (using a different user with less privilege than system account)
so u have more security and your copy running also from web browser....

ColdFusion installs this account by default using the LocalSystem account. The built-in LocalSystem user account has a high level of accessibility; it is part of the Administrators group. If a worker process identity runs as the LocalSystem user account, that worker process has full access to the entire system.
look at
To run the ColdFusion MX 7 application server using a specific non-administrative account, follow these instructions:
http://www.adobe.com/devnet/coldfusion/articles/cf7_security_04.html

http://www.adobe.com/cfusion/knowledgebase/index.cfm?event=view&id=KC.tn_17029&extid=tn_17029&dialogID=33340755&iterationID=1&sessionID=483048129ca05d451422&stateID=0+0+33346385&mode=simple

How to access network files from IIS applications:
http://support.microsoft.com/kb/207671/en-us

gas
0
 

Author Comment

by:ethanjohnsons
ID: 17099740
I am still unclear what to be done.
W/O thinking of ColdFusion for a moment, how do you transfer the file from a server to a server with a regular schedule.
Can DOS or .BAT handle it?
0
 
LVL 14

Accepted Solution

by:
canali earned 450 total points
ID: 17100126
create a cmd ex: copyFile.cmd
copy \\intranet\dfs\HR\EMPList.xls \\IntraEDU\E$\EMPData
::end batch

copy the batch in yuor c:\temp and create the scheduled task via scheduled task wizard or from the command prompt (only xp or 2003)
::this is the command to create task "running the batch copyFile.cmd as administrator every days at 8:30AM":
SCHTASKS /Create /SC DAILY  /TN "Copy xls file"  /TR c:\temp\copyFile.cmd /ST 08:30  /RU administrator /RP


Gas

to access \\IntraEDU\E$ u need administrator privileges!!! so the tusk need to run in admin context!!
0
 

Author Comment

by:ethanjohnsons
ID: 17105623
great!!!!

I want to rename the file and then copy so thay I can keep the prior files.

rename \\IntraEDU\E$\EMPData\EMPList.xls  EMPList**with the Date&Time or unique number**.xls

copy \\intranet\dfs\HR\EMPList.xls \\IntraEDU\E$\EMPData

The issue is how to make unique file names, EMPList**with the Date&Time or unique number**.xls?
"EMPList+Date&Time+.xls would be the best.
0
 
LVL 14

Expert Comment

by:canali
ID: 17118463
Should be ok:

@echo off
set $tok=1-3
::set DD=year+mounth+day
for /f "tokens=1 delims=.:/-, " %%u in ('date /t') do set $d1=%%u
if "%$d1:~0,1%" GTR "9" set $tok=2-4
for /f "tokens=%$tok% delims=.:/-, " %%u in ('date /t') do (
     for /f "skip=1 tokens=2-4 delims=/-,()." %%x in ('echo.^|date') do (
        set %%x=%%u
        set %%y=%%v
        set %%z=%%w
        set DD=%%w%%v%%u
        set $d1=
        set $tok=
     )
)
::set TT hour+minuts
for /f %%t in ('time /t') do set TT=%%t
echo %DD%%TT%
copy \\intranet\dfs\HR\EMPList.xls \\IntraEDU\E$\EMPData\EMPList%DD%%TT%.xls
:: byeGas
0
 

Author Comment

by:ethanjohnsons
ID: 17205337
great!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Now that Expression Web 4.0 (http://www.microsoft.com/expression/products/Upgrade.aspx) is free if you buy or have the full version of Expression Web 3.0, now is the best time to  migrate from FrontPage to Expression Web (http://www.frontpage-to-exp…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
The purpose of this video is to demonstrate how to insert an Iframe into WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Open Page or Post…
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question