permissions

where policy file location for my applet that needs clients permission to access resource?

hi i find out that i must write a policy file to grant permission for my applet... but i really confused with it... :( i want to write a applet that is a map viewer, i need to save image tiles on client that run my applet to locally access tiles for gain speed and time safely viewing map which is benefit to user... so, the applet nee...

config.php in root hacker safe with permission set to 644?

Hello. I it safe to place config.php in the root of your website even though it has premissions set to 644? ...

Grant capabilities to a running process

An already running process needs a privileged instruction, like using the SO_RCVBUFFORCE socket option. This process is running as a normal user process. How to give capability/permission to this process? File-based capability settings are still a dream? I have tried the /usr/sbin/setpcaps utility from libcap package and the cap_set_pr...

Set files to ownership of current directory in Python

I'm working on a Python script that creates text files containing size/space information about the directories that the script is run on. The script needs to be run as root, and as a result, it sets the text files that it creates to root's ownership. I know I can change the ownership with os.fchown, but how do I pass fchown the uid and ...

Get permissions for stored procedure in sql server 2005

How do I get the granted permissions for a stored procedure in sql server 2005? ...

c read a file's permissions

I have a relatively trivial question. How can I check if a file has read permissions in C? thanks ...

C# - Process.Start() - "The trust relationship between this workstation and the primary domain failed"

Hi Guys I have an application that, when run, does the following: Check current user is MicaUser Start Application under MicaUser using Process.Start() Exit This works fine on my Vista Dev machine, but when i try to run it under a restricted account in XP, i get the following error: "The trust relationship between this workstation a...

Apache & PHP folder permissions

Hi, Our PHP scripts create dynamic folders and files and we are having a permission issue. The folders were initially create using our ftpuser. EG: Album (created by ftpuser) all subfolders and files in them have to be dynamically created. The apache user is the user when a new folder is created and then it cannot write anything to that...

Asp.net Access To Network Share

I have an ASP.net app which needs to save files to a network share(samba). The share requires a username and password to connect. I have mapped a persistant drive to the share and provided the login credentials whilst logged in to the server as DOMAIN\WEBUSER. I have changed the virtual directory which hosts my app to use the DOMAIN\W...

How to programmatically determine the 3 permission groups Visitors/Members/Owners for a web in SharePoint?

In SharePoint, we have the 3 predetermined permission groups: Visitors Members Owners As setup in the /_layouts/permsetup.aspx page. (Site settings->People and Groups->Settings->Setup groups) How can a get these group names programmatically? (The page logic is obfuscated by Microsoft, so no can do in Reflector) ...

Declaring FileIOPermission on special folders

I have read over the documentation, scoured the interwebs, and it seems what I want to do cannot be done without writing a custom CAS permission. So, here's my last ditch attempt. I want to DECLARATIVELY define a FileIOPermission (Attribute) on my class to demand permission to the users MyDocuments directory. This directory is not consi...

How can I audit all chmod and chgrp commands?

Corporate security policies are starting to require low level event logging. For example, file access permission changes. One solution is to use SELinux but our knowledge of this is sparse at best. Another is to replace the command with a proxy which performs auditing (this sucks though). Any ideas? ...

Which user should the embedded application run as?

We have an embedded linux product with an application which lets the user change different settings through the menu system. These settings include IP address/DHCP and time. We now run this application as root but this feels wrong, letting the user directly interact with a process run as root. Which user should we use? If not root, h...

What user is PHP on my CentOS linux box? root?

Hi I am trying to troubleshoot why I cannot get files to upload to my CentOS machine running on EC2 and think it may be a permissions problem (as I have gleamed from previous questions). How do I check what privileges my PHP installation has for writing files. The directory that I want to write files to has been created in the same folde...

Web.Config AllowDefinition Error when visiting from local machine

The issue we're running across is that we use a screen scraper to generate non copy-and-pasteable images of web pages for users who don't have access to raw data to hamper copy-and-paste activity. We have a class that's set up to instantiate a web browser object in memory, and then it accesses the page and we render it to a bitmap that w...

What permissions should Developers have in the Dev database instance

...and how should those permissions be granted. I work in a large IT dept with 70+ applications, some in SQL server and most in oracle. Each system has a prod, QA and Dev instance. We (I'm a developer) have readonly access to prod/qa, which I'm fine with. In SQL server development instances devs are given db_owner, which works totall...

How do I check whether File.Delete() will succeed without trying it, in C#?

Hi, In C#, System.IO.File.Delete(filePath) will either delete the specified file, or raise an exception. If the current user doesn't have permission to delete the file, it'll raise an UnauthorizedAccessException. Is there some way that I can tell ahead of time whether the delete is likely to throw an UnauthorizedAccessException or not ...

C# Remove All Directory Permissions

In C# (2.0) How do I remove all permissions to a directory, so I can limit the access. I will be adding access back to a limited set of users. ...

Permission for a SharePoint document using MOSS web services

Hi, We have a need to retrieve user groups which have read permissions for a document. We know the URL of the document. The following Permissions service provides the groups which has access, but it expects either a site URL or a list URL. We have a document URL. Is there any other service which provides permissions of a document. Or alt...

"Access to the path ... is denied" (.NET C#)

Hi! I've been saving a small XML data file to an external drive, no probs. But then I tried to use the ApplicationData folder and others, even C:\ but no luck. I'm getting an error like "Access to the path "C:\" denied". Just to confirm, the file is created and read fine with the current code, to an external drive. I guess this is some...