Solved

Help setting permissions in plesk or IIS

Posted on 2007-11-27
8
2,102 Views
Last Modified: 2013-12-24
Hi

I have some websites on a server that is running IIS and Plesk

This sites are structured like this:

C:\Inetpub\vhosts\one-domain.com
C:\Inetpub\vhosts\another-domain.com
C:\Inetpub\vhosts\yet-another-domain.com

My problem is that I would like to upload a file to a domian from another. So a script can be executed in http://www.one-domain.com/script.php and then create a file on http://www.another-domain.com/new_file.jpg.

How do I do that?



0
Comment
Question by:koldstar
  • 4
  • 4
8 Comments
 
LVL 37

Expert Comment

by:meverest
ID: 20362093
Hi,

allowing that kind of cross site scripting is potentially dangerous, but you can acheive this by:

1.  give modify permissions to the interactive user (i.e. authenticated or anonymous) to both web roots (as in using windows explorer security properties, or use cacls.exe etc)
2.  check 'allow parent paths' under application properties (click 'configuration' button on 'home page' panel of web site properties.

Cheers.
0
 

Author Comment

by:koldstar
ID: 20364785
Thanks,

But I can't get it to work. After setting "allow parent paths" I can go up one more level than before.

Before I could see: C:\Inetpub\vhosts\one-domain.com\httpdocs\ and now I can see C:\Inetpub\vhosts\one-domain.com\. But I still get the permission denied error when trying to access antother domain or C:\Inetpub\vhosts\.

Due to the security risk, I was thinking if it was better to make the other domains into subfolders to "one-domain.com."

Example:

C:\Inetpub\vhosts\one-domain.com\httpdocs\ customers\another-domain.com
C:\Inetpub\vhosts\one-domain.com\httpdocs\ customers\yet-another-domain.com

Is this a safer way? And how do I set this up?

/R




0
 
LVL 37

Expert Comment

by:meverest
ID: 20365123
Hi,

I'm not entirely sure that I understand exactly what you are wanting to achieve - perhaps if you explain what or why you want to do that, we might be able to think fo another way to achieve the same result?

I think that if I needed to do something like that, I would prefer to run a script every couple of minutes to copy from one folder to the other.

Cheers.
0
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 

Author Comment

by:koldstar
ID: 20366093
Hi
The reason for all this is that I'm devolping a CMS. I would like the backend to be located on one domain and all the frontends on differents domains. I could solve the problem by uploading pictures and other files to the CMS-domain, but the customers webpage looks more professional when pictures are located on the same domain.
Another way to do this is to create a script that uploads the files through FTP, to the customers domain.. But I think this is a bit waste og resources and it requires me to make a special ftp-accound every time I add a new customer.
0
 
LVL 37

Expert Comment

by:meverest
ID: 20370329
Hi,

what about if you created a virtual 'images' folder under each web site.  so that:

www.somedomain.com/images maps to www.cms-site.com/application/imagedomain1

Cheers.
0
 

Author Comment

by:koldstar
ID: 20372281
That could work.

I just tried to create a virtual directory, but I can't set the path to another website in Plesk. It only allows paths like this: /httpdocs/images

I need it to go 2 folders "deeper".

Is there another way to change this? Maybe outside plesk?
0
 
LVL 37

Accepted Solution

by:
meverest earned 125 total points
ID: 20377293
Hello,

unfortunately, I am no plesk expert, but it certainly can be done using asp.NET and adsi.

take a look at this as a starter: http://www.iisfaq.com/Default.aspx?tabid=2709

regards,  Mike.
0
 

Author Closing Comment

by:koldstar
ID: 31411232
Hi

Sorry about the delay. I gave up and had a guy set it up for me...
0

Featured Post

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.

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

825 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