HighTechTalks DotNet Forums  

Unable to copy file to a shared path on remote server

Dotnet Security microsoft.public.dotnet.security


Discuss Unable to copy file to a shared path on remote server in the Dotnet Security forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
ashish vasudev
 
Posts: n/a

Default Unable to copy file to a shared path on remote server - 11-28-2007 , 01:47 AM






Hi all

I am trying to copy file from a win2000 server to a shared directory on
win2003 server using a COM component. I have used impersonation and it seems
to work fine.

But i am getting Access Denied error while copying file from the component.
Although i can access the directory.

I am using a user which has administrative rights to register the com
component and this user is also granted full control on the directory.

Can anybody figure out what could be the issue ?

--
Thanks
ashish

Reply With Quote
  #2  
Old   
coolCoder
 
Posts: n/a

Default Re: Unable to copy file to a shared path on remote server - 11-28-2007 , 08:46 AM






On Nov 28, 12:47 pm, ashish vasudev
<ashishvasu... (AT) discussions (DOT) microsoft.com> wrote:
Quote:
Hi all

I am trying to copy file from a win2000 server to a shared directory on
win2003 server using a COM component. I have used impersonation and it seems
to work fine.

But i am getting Access Denied error while copying file from the component.
Although i can access the directory.

I am using a user which has administrative rights to register the com
component and this user is also granted full control on the directory.

Can anybody figure out what could be the issue ?

--
Thanks
ashish
Hi Ashish,
At how many places you have granted full control on
the shared folder ?
If your File System is NTFS, then you must give full
control at 2 places, one on the security tab itself and second using
permissions button. You can find the tab and button on the properties
page of the shared folder from the Win 2003 machine. Just check it
once.

Thanks,
coolCoder.

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
If you find this post helpful, please rate it.


Reply With Quote
  #3  
Old   
ashish vasudev
 
Posts: n/a

Default Re: Unable to copy file to a shared path on remote server - 11-28-2007 , 10:18 PM



Hi

Thanks for the reply. I have checked permissions on both places. On the
permissions button Everyone has been assigned Full control and on permissions
tab the Administrators group is assigned Full Control and since the User i am
using is a member of Administrators group it should inherit the permissions.

--
Thanks
ashish


"coolCoder" wrote:

Quote:
On Nov 28, 12:47 pm, ashish vasudev
ashishvasu... (AT) discussions (DOT) microsoft.com> wrote:
Hi all

I am trying to copy file from a win2000 server to a shared directory on
win2003 server using a COM component. I have used impersonation and it seems
to work fine.

But i am getting Access Denied error while copying file from the component.
Although i can access the directory.

I am using a user which has administrative rights to register the com
component and this user is also granted full control on the directory.

Can anybody figure out what could be the issue ?

--
Thanks
ashish

Hi Ashish,
At how many places you have granted full control on
the shared folder ?
If your File System is NTFS, then you must give full
control at 2 places, one on the security tab itself and second using
permissions button. You can find the tab and button on the properties
page of the shared folder from the Win 2003 machine. Just check it
once.

Thanks,
coolCoder.

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
If you find this post helpful, please rate it.


Reply With Quote
  #4  
Old   
coolCoder
 
Posts: n/a

Default Re: Unable to copy file to a shared path on remote server - 11-30-2007 , 05:09 AM



On Nov 29, 9:18 am, ashish vasudev
<ashishvasu... (AT) discussions (DOT) microsoft.com> wrote:
Quote:
Hi

Thanks for the reply. I have checked permissions on both places. On the
permissions button Everyone has been assigned Full control and on permissions
tab the Administrators group is assigned Full Control and since the User i am
using is a member of Administrators group it should inherit the permissions.

--
Thanks
ashish

"coolCoder" wrote:
On Nov 28, 12:47 pm, ashish vasudev
ashishvasu... (AT) discussions (DOT) microsoft.com> wrote:
Hi all

I am trying to copy file from a win2000 server to a shared directory on
win2003 server using a COM component. I have used impersonation and it seems
to work fine.

But i am getting Access Denied error while copying file from the component.
Although i can access the directory.

I am using a user which has administrative rights to register the com
component and this user is also granted full control on the directory.

Can anybody figure out what could be the issue ?

--
Thanks
ashish

Hi Ashish,
At how many places you have granted full control on
the shared folder ?
If your File System is NTFS, then you must give full
control at 2 places, one on the security tab itself and second using
permissions button. You can find the tab and button on the properties
page of the shared folder from the Win 2003 machine. Just check it
once.

Thanks,
coolCoder.

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
If you find this post helpful, please rate it.
May be you can try giving ASP. NET account full control and also
IIS_WGM (just check the name once)

the second account - IIS_WGM is only available on Windows 2003 Server
operating systems.


Reply With Quote
  #5  
Old   
coolCoder
 
Posts: n/a

Default Re: Unable to copy file to a shared path on remote server - 11-30-2007 , 05:09 AM



On Nov 29, 9:18 am, ashish vasudev
<ashishvasu... (AT) discussions (DOT) microsoft.com> wrote:
Quote:
Hi

Thanks for the reply. I have checked permissions on both places. On the
permissions button Everyone has been assigned Full control and on permissions
tab the Administrators group is assigned Full Control and since the User i am
using is a member of Administrators group it should inherit the permissions.

--
Thanks
ashish

"coolCoder" wrote:
On Nov 28, 12:47 pm, ashish vasudev
ashishvasu... (AT) discussions (DOT) microsoft.com> wrote:
Hi all

I am trying to copy file from a win2000 server to a shared directory on
win2003 server using a COM component. I have used impersonation and it seems
to work fine.

But i am getting Access Denied error while copying file from the component.
Although i can access the directory.

I am using a user which has administrative rights to register the com
component and this user is also granted full control on the directory.

Can anybody figure out what could be the issue ?

--
Thanks
ashish

Hi Ashish,
At how many places you have granted full control on
the shared folder ?
If your File System is NTFS, then you must give full
control at 2 places, one on the security tab itself and second using
permissions button. You can find the tab and button on the properties
page of the shared folder from the Win 2003 machine. Just check it
once.

Thanks,
coolCoder.

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
If you find this post helpful, please rate it.
May be you can try giving ASP. NET account full control and also
IIS_WGM (just check the name once)

the second account - IIS_WGM is only available on Windows 2003 Server
operating systems.


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.