473,396 Members | 1,734 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Permissions on another server

I have two separate questions that are closely related enough that I am
going to package them here.

1. On an Intranet app which tracks tickets for the Tech Support department,
I have the word "Files" hyperlinked like this: <a href=\\servername\files\
target="_blank"> and it points to a server on the network where files
relating to tickets are located.
I'd like to be able to point that link directly to the folder, which has the
same number as that ticket. For example, if you're clicking the link from
the page for ticket 1000, your link would be to \\servername\files\1000.

The problem with working with the above is that in some cases, the folder
doesn't exist, and when you click it, it really hoses your browser. It
freezes up, often causing users to have to restart the browser. Is there a
way to check to see if the folder exists, so I can put in an If statement?
I found the property "FileExists" of the FileSystemObject, but it doesn't
seem to work. If there is a setting that will make it work, I'd appreciate
guidance finding that. Also, is this a potential security problem?

I should add that the server where the files are located is not the same
machine as the intranet server where this app resides, but is on the same
network.

2. Now this one is more complex. I want to make it where only people who
are in the Tech Support Dept have permissions to even get into the "files"
directory described above. Of course, this is a network admin issue, not
ASP. But, if I have named a particular person in another department to help
me on a ticket, I'd like to automatically give him permissions to get to
that directory. Not the "files" directory, but the ticket directory under
it. In the example above, if I am getting John the DBA's help for Ticket
1000, and I have marked him as helping me in my SQL Server database, then
he'd have access to the folder called 1000 inside the Files directory.

Is it even possible to use ASP code to set permissions like that?
Sep 27 '05 #1
5 1366
"middletree" <mi********@verywarmmail.com> wrote in message
news:ex**************@TK2MSFTNGP10.phx.gbl...
1. On an Intranet app which tracks tickets for the Tech Support
department, I have the word "Files" hyperlinked like this:
<a href=\\servername\files\ target="_blank">
and it points to a server on the network where files relating to
tickets are located.
First problem - getting ASP and, more importantly, the FSO to
be able to see anything /not/ stored on the same piece of tin.
Sadly, I've never had the need to do this - hopefully someone
else can fill this bit in.
I'd like to be able to point that link directly to the folder, which has
the same number as that ticket. For example, if you're clicking the
link from the page for ticket 1000, your link would be to
\\servername\files\1000.
Bad Idea. Once you put a link like that out in the open, it's /murder/
to try and secure it again. Have your ASP code produce a link to
[A.N.Other] ASP, passing the ticket number as a QueryString
parameter.
The problem with working with the above is that in some cases, the
folder doesn't exist, and when you click it, it really hoses your
browser.
There is an equivalent FolderExists() method but, again, I'm, not
sure you'll be able to use it "off" the box.
Also, is this a potential security problem?
Yes.
2. Now this one is more complex. I want to make it where only
people who are in the Tech Support Dept have permissions to even
get into the "files" directory described above.
This is where the A.N.Other ASP comes into its own.
It is given the ticket number and can, presumably, work out just
/who/ is trying to access it. The combination of these two determines
the output generated (i.e. a file listing or a [polite] "go away" message).
if I have named a particular person in another department to help
me on a ticket, I'd like to automatically give him permissions to get
to that directory.
Now that's a different challenge. How are you linking the two
(person and ticket) together?
if I am getting John the DBA's help for Ticket 1000, and I have
marked him as helping me in my SQL Server database,
Oops - missed that bit.
then he'd have access to the folder called 1000 inside the Files
directory.


So you have a database table somewhere that links people to
tickets. Your ASP would have to interrogate this, using the given
ticket number and current UserId (however you get hold of it).
If there's a "match", you can generate the file listing of that ticket's
directory. If not, out goes the [polite] "go away" message.

Again, the file listing generated by this should /not/ have links direct
to the target files, but to an ASP that will "serve" the file back to
the user when they click on the link. Again, if you give someone a
link to a file directly, it's much harded to take it away from them again,
later on.

HTH,
Phill W.
Sep 27 '05 #2
> This is where the A.N.Other ASP comes into its own.

Do you just mean another, separate ASP file to do the processing? Or is this
a name of a special component called A.N.Other? If so, I am unfamiliar with
it. Got a link?
So you have a database table somewhere that links people to
tickets. Your ASP would have to interrogate this, using the given
ticket number and current UserId (however you get hold of it).
If there's a "match", you can generate the file listing of that ticket's
directory. If not, out goes the [polite] "go away" message.


Yeah, I guess I could do that, but the boss is asking me to use ASP code to
allow permissions on the directory, when it otherwise would not allow them.
So this is really about asking how to use ASP to do the IT dept's job.

Sep 27 '05 #3
"middletree" <mi********@verywarmmail.com> wrote in message
news:Ox**************@TK2MSFTNGP10.phx.gbl...
This is where the A.N.Other ASP comes into its own.
Do you just mean another, separate ASP file to do the processing?


Yes; just a regular ASP, written to deal with this particular job.
No components required.
the boss is asking me
Oh dear ...
to use ASP code to allow permissions on the directory, when
it otherwise would not allow them.


IMHO, that's a seriously Bad Idea. In the first place, you'd have
to give your web site some pretty heavyweight permissions just to
be able to do this in the first place; consider the potential for
damage if your site were to be hacked...

Secondly, file system permissions only serve to make things more
complicated, espcially when they go wrong. Far better, IMO, to
have the [web] server deal with access control - which it can do
fairly /easily/ with the data you have to hand - rather than fiddling
around, adding and removing permissions (not the most "visible"
of commodities to start with) in the file system.

Regards,
Phill W.
Sep 28 '05 #4
>consider the potential for
damage if your site were to be hacked...


Well, this is Intranet.
Sep 28 '05 #5
"middletree" <mi********@verywarmmail.com> wrote in message
news:e1**************@TK2MSFTNGP15.phx.gbl...
consider the potential for damage if your site were to be hacked...


Well, this is Intranet.


Ah; In-House Users ...

/Of course/ you can trust them not to do silly things like, say,
deleting all of the files in a given ticket's directory while they're
"just looking at it" in Windows Explorer ... ;-)

Regards,
Phill W.
Sep 29 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: BingoHandJob | last post by:
Hello group! I'm having a problem and I hope some of you may be able to point me in the right direction. I inherited a web site using php, running on Windows 2000 & IIS. The site was...
10
by: Shelly | last post by:
I have a new server and I have my files up there. The files are in /var/www/html/. In this directory I have another directory that I created called "users". I am unable to figure out how to set...
0
by: Fran Tirimo | last post by:
I am developing a small website using ASP scripts to format data retrieved from an Access database. It will run on a Windows 2003 server supporting FrontPage extensions 2002 hosted by the company...
2
by: Fran Tirimo | last post by:
I am developing a small website using ASP scripts to format data retrieved from an Access database. It will run on a Windows 2003 server supporting FrontPage extensions 2002 hosted by the company...
1
by: Brad H McCollum | last post by:
I'm writing an application using VB 6.0 as the front-end GUI, and the MSDE version of SQL Server as the back-end (it's a program for a really small # of users --- less then 3-4). I'm trying to...
5
by: Daniel Wilson | last post by:
I have a client who is trying to deploy a webservice I wrote. The web service reads a file on a file server and delivers information about it. The file needs to be inaccessible to the user of the...
0
by: Curt K | last post by:
We run some web services (IIS 5 and IIS 6) that communicate to a COM out of process server, which in turn communicates to another out of process COM server (long story). We have had lots of...
9
by: Nemisis | last post by:
Hi everyone, hope your all looking forward to xmas. I am setting up a Sql2005 database on a Windows Server, running Windows Server 2003. The database is going to be accessed via users using an...
1
by: SysProg | last post by:
I need some help with a problem I've encountered. I am a zLinux, WAS, and DB2 noob so please bear with me. I am helping to support two WebSphere applications which utilize DB2 under zLinux. One...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.