473,322 Members | 1,614 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,322 software developers and data experts.

Security for writing a file

What is the safest way to create a file on the server? I'm looking for
something like:

secureconnection();
// create the file
disconnect();
Nov 18 '05 #1
6 1152
Can you be more specific?

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Joe Bonavita" <JBonavita_@_caminus.com> wrote in message
news:On**************@tk2msftngp13.phx.gbl...
What is the safest way to create a file on the server? I'm looking for
something like:

secureconnection();
// create the file
disconnect();

Nov 18 '05 #2
I want to create a file on the server (which becomes a new page) based on
the input from a user. Once the user fills out some data a html file will be
created and the link to this file will be emailed to them.
"Kevin Spencer" <ke***@takempis.com> wrote in message
news:ud**************@TK2MSFTNGP10.phx.gbl...
Can you be more specific?

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Joe Bonavita" <JBonavita_@_caminus.com> wrote in message
news:On**************@tk2msftngp13.phx.gbl...
What is the safest way to create a file on the server? I'm looking for
something like:

secureconnection();
// create the file
disconnect();


Nov 18 '05 #3
Your original question was "What is the safest way to create a file on the
server?" That is what is unclear. What do you mean by "safe" and what was
the meaning of all that other pseudocode you put into your question?

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Joe Bonavita" <JBonavita_@_caminus.com> wrote in message
news:OK*************@TK2MSFTNGP11.phx.gbl...
I want to create a file on the server (which becomes a new page) based on
the input from a user. Once the user fills out some data a html file will be created and the link to this file will be emailed to them.
"Kevin Spencer" <ke***@takempis.com> wrote in message
news:ud**************@TK2MSFTNGP10.phx.gbl...
Can you be more specific?

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Joe Bonavita" <JBonavita_@_caminus.com> wrote in message
news:On**************@tk2msftngp13.phx.gbl...
What is the safest way to create a file on the server? I'm looking for
something like:

secureconnection();
// create the file
disconnect();



Nov 18 '05 #4
Secure. I don't want to grant access to the world to be able to drop files
on the server.

What I want to do is be able to connect to the server with write access,
create a file on the server then remove the write access so the only time
anything can be written to this folder is during the time I create the file.

Here's another way of looking at it. I user on the web site fills in some
fields to create a custom web page. When they hit save the web page is saved
to the server. Once the page is saved the app will send an email to the user
with the link to their new page.

I hope this makes sense.

"Kevin Spencer" <ke***@takempis.com> wrote in message
news:OV*************@TK2MSFTNGP11.phx.gbl...
Your original question was "What is the safest way to create a file on the
server?" That is what is unclear. What do you mean by "safe" and what was
the meaning of all that other pseudocode you put into your question?

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Joe Bonavita" <JBonavita_@_caminus.com> wrote in message
news:OK*************@TK2MSFTNGP11.phx.gbl...
I want to create a file on the server (which becomes a new page) based on the input from a user. Once the user fills out some data a html file
will be
created and the link to this file will be emailed to them.
"Kevin Spencer" <ke***@takempis.com> wrote in message
news:ud**************@TK2MSFTNGP10.phx.gbl...
Can you be more specific?

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Joe Bonavita" <JBonavita_@_caminus.com> wrote in message
news:On**************@tk2msftngp13.phx.gbl...
> What is the safest way to create a file on the server? I'm looking for > something like:
>
> secureconnection();
> // create the file
> disconnect();
>
>



Nov 18 '05 #5
If you grant access to the account under which your ASP.Net process is
running, you are not granting it to anyone else. Therefore, only your app
will be able to do the writing to disk. So there is no security risk there.
I would recommend just having your app write the file to the disk. If you
need to limit whom has access to the app, you can require the user to log in
in order to use it.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Joe Bonavita" <JBonavita_@_caminus.com> wrote in message
news:eP**************@TK2MSFTNGP10.phx.gbl...
Secure. I don't want to grant access to the world to be able to drop files
on the server.

What I want to do is be able to connect to the server with write access,
create a file on the server then remove the write access so the only time
anything can be written to this folder is during the time I create the file.
Here's another way of looking at it. I user on the web site fills in some
fields to create a custom web page. When they hit save the web page is saved to the server. Once the page is saved the app will send an email to the user with the link to their new page.

I hope this makes sense.

"Kevin Spencer" <ke***@takempis.com> wrote in message
news:OV*************@TK2MSFTNGP11.phx.gbl...
Your original question was "What is the safest way to create a file on the
server?" That is what is unclear. What do you mean by "safe" and what was the meaning of all that other pseudocode you put into your question?

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Joe Bonavita" <JBonavita_@_caminus.com> wrote in message
news:OK*************@TK2MSFTNGP11.phx.gbl...
I want to create a file on the server (which becomes a new page) based

on the input from a user. Once the user fills out some data a html file will
be
created and the link to this file will be emailed to them.
"Kevin Spencer" <ke***@takempis.com> wrote in message
news:ud**************@TK2MSFTNGP10.phx.gbl...
> Can you be more specific?
>
> --
> HTH,
> Kevin Spencer
> .Net Developer
> Microsoft MVP
> Big things are made up
> of lots of little things.
>
> "Joe Bonavita" <JBonavita_@_caminus.com> wrote in message
> news:On**************@tk2msftngp13.phx.gbl...
> > What is the safest way to create a file on the server? I'm looking

for > > something like:
> >
> > secureconnection();
> > // create the file
> > disconnect();
> >
> >
>
>



Nov 18 '05 #6
ok. So I'll just give ASPNET the rights. Thanks.

"Kevin Spencer" <ke***@takempis.com> wrote in message
news:eA**************@TK2MSFTNGP12.phx.gbl...
If you grant access to the account under which your ASP.Net process is
running, you are not granting it to anyone else. Therefore, only your app
will be able to do the writing to disk. So there is no security risk there. I would recommend just having your app write the file to the disk. If you
need to limit whom has access to the app, you can require the user to log in in order to use it.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Joe Bonavita" <JBonavita_@_caminus.com> wrote in message
news:eP**************@TK2MSFTNGP10.phx.gbl...
Secure. I don't want to grant access to the world to be able to drop files
on the server.

What I want to do is be able to connect to the server with write access,
create a file on the server then remove the write access so the only time anything can be written to this folder is during the time I create the

file.

Here's another way of looking at it. I user on the web site fills in some fields to create a custom web page. When they hit save the web page is

saved
to the server. Once the page is saved the app will send an email to the

user
with the link to their new page.

I hope this makes sense.

"Kevin Spencer" <ke***@takempis.com> wrote in message
news:OV*************@TK2MSFTNGP11.phx.gbl...
Your original question was "What is the safest way to create a file on the server?" That is what is unclear. What do you mean by "safe" and what was the meaning of all that other pseudocode you put into your question?

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Joe Bonavita" <JBonavita_@_caminus.com> wrote in message
news:OK*************@TK2MSFTNGP11.phx.gbl...
> I want to create a file on the server (which becomes a new page)

based on
> the input from a user. Once the user fills out some data a html file

will
be
> created and the link to this file will be emailed to them.
>
>
> "Kevin Spencer" <ke***@takempis.com> wrote in message
> news:ud**************@TK2MSFTNGP10.phx.gbl...
> > Can you be more specific?
> >
> > --
> > HTH,
> > Kevin Spencer
> > .Net Developer
> > Microsoft MVP
> > Big things are made up
> > of lots of little things.
> >
> > "Joe Bonavita" <JBonavita_@_caminus.com> wrote in message
> > news:On**************@tk2msftngp13.phx.gbl...
> > > What is the safest way to create a file on the server? I'm
looking for
> > > something like:
> > >
> > > secureconnection();
> > > // create the file
> > > disconnect();
> > >
> > >
> >
> >
>
>



Nov 18 '05 #7

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

Similar topics

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...
116
by: Mike MacSween | last post by:
S**t for brains strikes again! Why did I do that? When I met the clients and at some point they vaguely asked whether eventually would it be possible to have some people who could read the data...
2
by: TechBoy | last post by:
I am trying to learn on the fly about Access Security for an app we are developing. I realize Access security is an advanced subject with many details. I wanted to share a scenario and ask a...
12
by: Mark | last post by:
Hello, in a simple console application I try to create a file with some code like: FileStream file = new FileStream("test.txt", FileMode.OpenOrCreate, FileAccess.Write); StreamWriter sw = new...
0
by: Namratha Shah \(Nasha\) | last post by:
Hey Guys, Today we are going to look at Code Access Security. Code access security is a feature of .NET that manages code depending on its trust level. If the CLS trusts the code enough to...
3
by: Jennifer | last post by:
On an ASP page I've got some code that is supposed to "export" data in a grid to an Excel file. What I'm doing is writing all the data to a text file, separating the fields by commas. Then I'll...
1
by: Jeremy S. | last post by:
..NET's code Access Security enables administrators to restrict the types of things that a .NET application can do on a local computer. For example, a ..NET Windows Forms application can be...
2
by: John Kotuby | last post by:
Hello all, Note: This is the full version of a Post that I inadvertently sent before it was complete. About a year ago I wrote a VB.NET 2003 solution that consists of a number of assemblies...
2
by: Ken Fine | last post by:
I want to add the security question and answer security feature to the ChangePassword control. I am aware that this functionality is built into the PasswordRecovery tool. I have implemented the...
2
ssnaik84
by: ssnaik84 | last post by:
Hello, I have hosted a website on GoDaddy.com. It's a share hosting. I am using XML file as a database. That means, I am reading and writing data into XML file instead of regular RDBMS (MySQL, MS...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.