How do I check the available permissions

From: Arun (kathir_arun_at_hotmail.com)
Date: 09/17/03


Date: Wed, 17 Sep 2003 14:59:35 +0530


Hi,

My program, when it runs creates a couple of files for its usage. Inside my
exe, I want to check if it has the permission to access/modify a particular
file or folder. Is there any way to do that? For a text file, I removed all
the permissions for all the users and in my code, I tried creating a
FileIOPermission class with the FileIOPermissionAccess.Write for that
particular text file and called its Demand method. It succeeded without any
problem. But when I tried to open that file for writing, I promptly got the
security access violation exception.

Can anybody help me in checking the available permissions on the resources
before actually working on them?

Thanks in advance,
Arun



Relevant Pages

  • Re: rationale behind umask
    ... > default file permissions. ... > permissions which are Unmasked by umask. ... > files would vary in the permissions they try to set how can the usage ... and prevent both group and other execution. ...
    (alt.os.linux)
  • Re: My goal is to link the securitys tables with the sessions tables,
    ... CREATE TABLE test_table (col1 INT) ... grant the INSERT permission on the authors table to another user. ... How can I retrieve a list of objects and permissions for a specified role? ... This is an example of usage: ...
    (microsoft.public.sqlserver.security)
  • Re: Problem with suid script
    ... I have a perl script with suid permissions in the /bin directory. ... But when I try to run usage: ...
    (comp.unix.admin)
  • Re: Required permission settings to allow exe to modify text files
    ... You need to make sure the NTFS permissions on the directory or file allow ... the IUSR account sufficient rights on the txt file. ... I can no longer fully test my cgi because it will no> longer update text files (stored in the same directory as the exe). ... The exe execute permissions> should be accessible to all anonymous users. ...
    (microsoft.public.inetserver.iis.security)
  • Re: Browsers special handling of EXE files
    ... Explorer would then download the EXE. ... runtime tried to download all of your other assemblies, ... allowing these remote EXEs to execute and with more permissions than 1.0. ...
    (microsoft.public.dotnet.vjsharp)

Quantcast