permissions

Restrict a directory that can be used only through a .net Application

I have a windows Application that stores certain files in a directory. I would like to know if there is a way in .net that I can restrict users not to have access to that directly (by just going to that directory in windows, and grab files) so only my application can add/verify/delete a file in that directory. ...

How to restict access to a paricular folder in asp .net

I have a subdirectory in my root folder by the name files. I want to deny direct access to files under this directory. However my application can read and write to this directory programatically. ...

ASP.net permissions to root certificate store

Is it possible to give asp.net read permission to the certificate store? If yes , how? If no... do I need to set the permission manually per certificate file? If yes where are these files physically on the HDD? ...

really annoying permissions problem with IIS

I've created a web site (virtual directory) in IIS7. Now for some reason 1 folder I create in the web site, has read only permissions... Doesn't matter what I do, I can't get rid of the read only flag. . I tried: deleting the folder, recreating it - read only!!! setting permissions to uncheck read only... again it resets itself auto...

Checking for write access in a directory before creating files inside it.

Hello My small utility application asks the user for an output directory via a GUI file selector. Then it creates a lot of files in this output directory after some processing. I need to check if the application has write access so that it informs the user and does not continue with the processing (which might take a long time) My fi...

AzMan Role Assignment not reflecting in ADAM

I created a sample ADAM Instance. Used AzMan. Created a webservice to get the information from ADAM and AzMan. I created a user in AD. Used that user for anonymous access in IIS. Gave reader access to that user, in ADAM and AzMan. This setup worked successfully. Now I am creating the actual ADAM Instance for Dev, Test and Prod. My W...

django problem uploading and saving documents

Hello, I am working on a django app. One part would involve uploading files (e.g. spreadsheet or whatever). I am getting this error: IOError at /fileupload/ [Errno 13] Permission denied: 'fyi.xml' Where 'fileupload' was the django app name and 'fyi.xml' was the test document I was uploading. So, I used chmod and chown to make the ...

UnauthorizedAccess Exception with File.Copy on a ReadOnly file

Simple question really... How can I copy a ReadOnly file? When running a debug build of my very simple Windows Forms app, I'm getting the UnauthoriazedAccess Exception when trying to copy a read-only file from one directory to another: FileInfo newFile = new FileInfo(fileName); File.Copy(newFile.FullName, Path.Combine(destinationDirPa...

Is Oracle DBA Privilege include "CREATE ANY TABLE" role???

I Just need to create table from a user to any user under the same DB. letz consider 3 Schemas. Schema_1,Schema_2 and Schema_3. schema 1 had DBA Privilege. Is it possible to table in SChema_2 or Schema_3 from Schema_1???? or we need to give this role "CREATE ANY TABLE" also ?? ...

Best way to manipulate Windows ACL permissions

My goal is to find out how to programmatically adjust permissions on files & directories in Windows using .NET. I have identified the following options: Windows API (yuck!) Active Directory Service Interfaces (COM... ugh...) Windows PowerShell (?) Google for an easy-to-use facade. None of these seem very palatable to me. Which route...

Recursive Security Settings

I would like to apply a folder's Security Settings to all descendants in C#. Essentially, I would like to do the same thing as 'Replace all existing inheritable permissions on all descendants with inheritable permissions from this object' within 'Advanced Security Settings for [Folder]'. Are there any elegant ways to approach this? ...

php script 403 forbidden error

Hello, I have a script giving me error 403 Forbidden error, its just a copy of another script but the different in this is that both use another mysql class to access database. My whole project is complete and this is last file so i dont want to do the whole work again for a single file. Server logs shows that client denied by server ...

WiX Permissions, how do I express 'Modify' in terms of DACL flags

I'm attempting to apply custom rights to a folder as part of a WiX 3.0.4318.0 installer. In terms of the Security properties UI in explorer, I want to add Modify to the rights for BUILTIN\Users. Obviously it needs to be resilient against localisation of the user name. So based on my research to date, I want at least: <CreateFolder Dir...

Minimum permission required to publish a workflow using Sharepoint designer

I'm trying to give one our BA's the ability to make changes to a workflow that was created with Sharepoint designer. After some trial and error (i did not try all combinations) adding them to the Site Administrators group seemed to be the only thing that worked. In this case it's only going to be a temporary elevation of permissions. ...

Cloning permissions of a folder to another folder

Are there any ways in OS X to clone the permissions of one folder to another. Just to be clear, I don't want to copy the entire folder, just the permissions and then set them on another folder. I think this type of thing could be achieved on Linux/UNIX using the setfacl/getfacl commands, but I'm unsure on how to do this with OS X. Thank...

Unable to upload a file from web page in ASP.NET 3.5 web application running in Medium Trust

Possible Duplicate File I/O in medium trust? I get the following error when I try to upload a file from a web page: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed The web application runs on ASP.NET Framewor...

Why can't webmin can't open files in directories that are not world executable?

I'm using an open source Perl package named "webmin" on several servers. It's mostly Perl on the inside. I found a weird behavior on a new 64-bit server: files were getting created empty. I've traced it down to a "Permission Denied" error in Perl's builtin function open which is pretty unusual, since the application is running as root....

Program can't load after setting the setuid bit on

Consider this scenario in which an executable A.bin uses libY.so and libZ.so. A.c, Y.c and Z.c are all written in C. Z.c and Y.c are compiled into respective .so files. This is the directory structure of the files $home/bin/A.bin $home/lib/libY.so $home/lib/libZ.so When I run A.bin as normal user, A.bin runs normally as expected. Note...

i want to run a file using cron job not in a browser

Hi friends, i need a help, i was set the file in cron job. that file is also execution in browser also example : http://example.com/cron.php how can i restrict in browser excution Thanks Siva kumar ...

Bash Scripting - How to set the group that new files will be created with?

I'm doing a bash shell script and I want to change the default group that new files are created as. I know you use umask to change the permissions. Is there something for the group? ...