Solved

Copy permission issue from server to server

Posted on 2006-07-11
9
315 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
  • 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
 
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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

Introduction In this tutorial, I'll explain how to create an animated progress meter in a wireframe prototype developed using Axure RP 7.0 - a leading prototyping tool for designing web sites and software. (For more information about Axure and gett…
On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
The purpose of this video is to demonstrate how to make a WordPress Site faster and smaller in size by cleaning up the database. This will be demonstrated using a Windows 8 PC. Plugin WP Optimize will be used. Go to your WordPress login page. T…
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…

867 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now