Solved

Opening Files as Read-Only

Posted on 2003-11-05
10
242 Views
Last Modified: 2010-04-25
If someone on our network opens a document through our intranet I want it to open as Read-Only without affecting the actual file.  Is there a way you can specify in a hyperlink to open as Read-Only?  It would be for documents such as Word or Excel..
0
Comment
Question by:mgcIT
10 Comments
 
LVL 19

Expert Comment

by:webwoman
ID: 9689894
If they open it in a browser, it IS read only unless they have write permissions on that folder.

Easy solution -- don't give them write permissions.
0
 
LVL 18

Author Comment

by:mgcIT
ID: 9690361
ok, I see what you are saying, but after looking back at my site, and logging in as a normal user I have found the actual problem.  Here is what is happening:

The intranet site opens various files on the server such as Word or Excel documents (the server where the intranet lies is a different server than our file server but they are both on the same LAN).  Originally I was just linking to the documents using the full path, but now I see that if a user does not have a drive mapped that a file points to, they cannot open the page.

Example:

I have a link that points to a file "G:/Staff List.doc"

This always opened fine for me because I always had the G: drive mapped, but when I logged into our network as another user who did not have access to the G: drive, they could not open the page.  What I thought would happen, is our intranet server (which is mapped to this drive) would locate the file and display it in a browser.  Why is the intranet using the user's own local drive mappings to find files and how can I correct this?
0
 
LVL 23

Expert Comment

by:Saqib Khan
ID: 9690364
Exactaly as Webwoman mentioned. Dont give them Write permission.

To make more sense.

Right Click on File/Folder, Choose Properties and choose General Tab.

from the Attributes check "Read Only". and hit ok
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
LVL 18

Author Comment

by:mgcIT
ID: 9690533
adilkhan,

I don't know if you posted before seeing my first response, but just in case please see above.  I want my site to fetch the pages and display them without having to worry about the user having the drives available.  Therefore read/write access should not be an issue.

Or am I totally wrong?
0
 
LVL 1

Expert Comment

by:gabss
ID: 9694127

can u not move the doc onto the other sever...

Then change the permission as : webwoman and asikhan said ?

g
0
 
LVL 18

Author Comment

by:mgcIT
ID: 9695148
Moving the files onto the other server doesn't make much sense to me.  There must be a way for this to happen.  Isn't that the basis for a website?  That you tell it what files you want to see, and it gets them and displays them?  Is there something wrong with the way I am hyperlinking it?  Should I not be using the full path with drive letter or something like that?  I've tried most combinations that I can think of but maybe there is something I am missing.
0
 
LVL 18

Author Comment

by:mgcIT
ID: 9695366
So I guess, the main question is "Is it possible to link to a file that is not in the root of your site?"
0
 
LVL 18

Author Comment

by:mgcIT
ID: 9696334
OK, in case anybody cares, I figured it out.  In IIS you can create a "Virtual Directory" in the root of your site which actually points to another drive, or folder, or network location.  And when you create this directory you can also specify that it is read-only or whatever access you desire.  I'm not sure how this is done under different systems such as Tomcat, but I'm guessing there is probably a way.

so there you go.  Thanks for your help anyways.
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 9710105
PAQed, with points refunded (100)

Computer101
E-E Admin
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Simple PHP Upload Script 11 2,738
Issue when emailing and there is a space 7 400
Rotating Adobe pdf document 4 318
Does Adobe/Dreamweaver Have Free Website Templates? 2 421
Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

792 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