Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Opening Files as Read-Only

Posted on 2003-11-05
10
Medium Priority
?
246 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
[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
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
Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

 
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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
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…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

618 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