473,748 Members | 8,392 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to change NTFS Permissions programmitcally

I programmed a web application that will let members to register and
reserve space for them on my web using a folder they choose.
Every thing went well until i tried to test it on the WebServer it gave
me "Access Denied" Error.

Please, is there a way that i could give permissions to the folders i
want so that users could upload to to easily??

Hope there is a solution.
Best Regards
Firas S Assaad

*** Sent via Developersdex http://www.developersdex.com ***
Jan 13 '06 #1
6 4073
If you know that's it's a permissions problem, what's preventing you from
changing the permissions? Right click the folder in Windows Explorer, go to
the security tab... I'm not sure exactly what you're asking here.

Ray at work

"Firas Assaad" <fi******@gmail .com> wrote in message
news:e9******** *****@TK2MSFTNG P14.phx.gbl...
I programmed a web application that will let members to register and
reserve space for them on my web using a folder they choose.
Every thing went well until i tried to test it on the WebServer it gave
me "Access Denied" Error.

Please, is there a way that i could give permissions to the folders i
want so that users could upload to to easily??

Hope there is a solution.
Best Regards
Firas S Assaad

*** Sent via Developersdex http://www.developersdex.com ***

Jan 13 '06 #2
What i really mean is that, i programmed a feature that will be hosted
on the net, which will give the users and visitors to this page the
ability to register and get a free space at my website so that he could
put his own pages using. ex: http://www.myname.com/userfolder
You see the "userfolder " is a real folder on the web server. But the
problem is how could i put the permissions for the "userfolder " so that
the user could upload to it without getting the error "Access Denied".
And ofcourse i can't tell every user to wait few days until i modufy the
permissions for him. Because there are hunders of such websites that
will do what i want easyly and faster, like www.geocities.com

I hope u could give me that solustion as soon as possible
Thnx in advanced

Best Regards
Firas S Assaad

*** Sent via Developersdex http://www.developersdex.com ***
Jan 13 '06 #3
You could set the permissions on the parent folder. In a default setup, the
permissions will propegate down then. Just make sure that your app prevents
user1 from going to yoursite.com/user2's page and uploading files to it.

Ray at work

"Firas Assaad" <fi******@gmail .com> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
What i really mean is that, i programmed a feature that will be hosted
on the net, which will give the users and visitors to this page the
ability to register and get a free space at my website so that he could
put his own pages using. ex: http://www.myname.com/userfolder
You see the "userfolder " is a real folder on the web server. But the
problem is how could i put the permissions for the "userfolder " so that
the user could upload to it without getting the error "Access Denied".
And ofcourse i can't tell every user to wait few days until i modufy the
permissions for him. Because there are hunders of such websites that
will do what i want easyly and faster, like www.geocities.com

I hope u could give me that solustion as soon as possible
Thnx in advanced

Best Regards
Firas S Assaad

*** Sent via Developersdex http://www.developersdex.com ***

Jan 13 '06 #4
Thanx for the reply. But this way would cause other folder to change
their permission which i don't want to for security reasons. If there is
a way to change the NTFS Permissions for chosen folders i would to know
it cause my work is stoped on this.

And by the way, i am uploading using AspUpload 3.0. And i read on thier
user manual that i could login with the username to get previlage in
uploading files to any desired folder. But it failed, when i tried it.
If you know how to do it and it would help me in my work, i would
appreciate it if you tell me.

http://www.aspupload.com/manual_security.html

Thanx in Advance
Best Regards
Firas S Assaad
0096892166434
fi******@gmail. com
ASP/VBscript Developer
*** Sent via Developersdex http://www.developersdex.com ***
Jan 13 '06 #5
Isn't there anybody out there could help me with my little
problem???????? ???

Best Regards
Firas S Assaad
0096892166434
fi******@gmail. com
ASP/VBscript Developer
*** Sent via Developersdex http://www.developersdex.com ***
Jan 18 '06 #6
Hi,

When your users’ login, make them all impersonate one local server user
you create with the required permissions. This will keep it simple,
never mind if a security issue arises you can just deny rights to the
one local server user you created locking down the site until you sniff
out the security hole.

Happy Coding,

Stefan, CompTIA A+, C# GURU

"You always have to look beyond the horizon and can never be complacent
-- God forbid we become complacent." -- Jozef Straus

*** Sent via Developersdex http://www.developersdex.com ***
Apr 17 '06 #7

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

Similar topics

1
8032
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 developed by a consulting firm about a year before I came on board, the consultant has since gone out of business. Overall, I've never had a problem with the site and have been able to figure out nearly everything they configured on it.
5
1745
by: travelling_nerd | last post by:
Hi, I'm trying to write a script that will allow validated users to download a file that has specific ntfs permissions. Here's a summary: Scenario: 1) The name of the file is "binary.zip". 2) I've created a local account on the server called "dl_user". 3) dl_user is the only account that has permissions on binary.zip. 4) I've written a script that validates several people to access a web
2
2333
by: Ram | last post by:
Hey, I'v managed to find a way of adding NTFS permissions to a certain folder, But the problem is, the folder has a couple of inherited permissions which I want to delete. How can I remove the folder's NTFS permissions WITHOUT using WMI or special XP features? Thanks ahead! --Ram
1
3752
by: Sharon | last post by:
Hi all. How can i change a file NTFS permissions? 10x, Sharon.
0
1109
by: Shawn H. Mesiatowsky | last post by:
Is there any way of changing NTFS permissions (given that the user logged on has the rights) in C#? Thanks for your help Shawn H. Mesiatowsky
0
1118
by: David Kyle | last post by:
Hello, I’m currently having some difficulties finding an example and the recommended practices for setting NTFS Permissions on Files and Folders. I will also need to do some impersonation and I keep seeing what seems to be different libraries and methods every time I go to a new page. My situation is as follows: I’m going to be running an ASP.NET/C# program under the identity of a very restricted IIS User that doesn’t have much...
0
1336
by: VP | last post by:
Hi there, well i am stuck on a problem with regards to obtaining security permissions on folders. At the moment I have created a simple treeview example which shows all sub-directories in a tree form for a particular directory. Then I wanted to see how the application would handle a sub-directory(test1) if the current user logged on win2k box didnt have the permissions to access test1. The application throws an exception
0
1097
by: Shawn H. Mesiatowsky | last post by:
I am trying to Create a web app that creates a directory, and assigns permissions to the directory. Is there a way to do this, or even run a shell comand (like cacls.exe) to alter the NTFS permissions on the directory? Thanks for your help Shawn H. Mesiatowsky
4
4272
by: Ram | last post by:
Hey, I'v managed to find a way of adding NTFS permissions to a certain folder, But the problem is, the folder has a couple of inherited permissions which I want to delete. How can I remove the folder's NTFS permissions WITHOUT using WMI or special XP features? Thanks ahead! --Ram
0
8991
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9544
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9372
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9247
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4606
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4874
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3313
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.