Solved

Copy permission issue from server to server

Posted on 2006-07-11
9
322 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
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 
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

Turn Insights Into Action

You’ve already invested in ITSM tools, chat applications, automation utilities, and more. Fortify these solutions with intelligent communications so you can drive business processes forward.

With xMatters, you'll never miss a beat.

Question has a verified solution.

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

Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
The purpose of this video is to demonstrate how to create a Printer Friendly PDF on a WordPress Page. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome Screenshot” Google Chrome Extension, and SmallPDF.com Log…
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…

690 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