permissions

php chown exec() question!

Hi people, I need to write an exec to change owner on some folders on my webserver. This is what I am working with. exec('cd /xxxxx/xxxxxx/public_html/ && chown user.user * -R', $out); Got to be honest Apache is not my bag so kind of stumbling in the dark. Basically I need to change all directories to user and not 99 as they currentl...

How to post a form across subdomains

I need to pass a set of values in a form such as name, lastname, age, etc. to a PHP file in a different subdomain. For example, form.html is located at http://subdomain1.website.com/form.html, when I press the submit button it passes the data in the form to http://subdomain2.website.com/doform.php and inserts it into the database. How ...

How to grant limited "manage permissions" permission in Sharepoint?

I have a Sharepoint library that is too large for a central administrator to manage permissions on all items, so I want to designate a few other people who are able to allow or disallow read/write access for arbitrary items in the library to users or groups. However, I don't want to give those few people total "manage permissions" abili...

Calling a WCF Service from SQL CLR Stored Procedure

I have created a SQL CLR Stored Procedure which will call a WCF Service. I have managed to get all the correct DLL's loaded into SQL Server to get this to work however I now have following error message: System.Configuration.ConfigurationErrorsException: An error occurred creating the configuration section handler for system.serviceMode...

Duplicate GetAccessRules, FileSystemAccessRule entries

Hi, I'm getting a duplicate FileSystemAccessRule from this code below: C:\inetpub\wwwroot\AspInfo\Account BUILTIN\IIS_IUSRS : Allow : ReadAndExecute, Synchronize BUILTIN\IIS_IUSRS : Allow : -1610612736 NT SERVICE\TrustedInstaller : Allow : FullControl NT SERVICE\TrustedInstaller : Allow : 268435456 and I can't work out what or why it ...

JarBundler ant task build (OS X) which does not start in mac's /Application folder - permission denied

Hi, I have used the jarbundler ant task to create an OSX (10.6.4) XXX.app for my java app. The problem is that it starts fine in any other directory except the /Applications directory. A look at file permissions shows nothing amiss. I can get it to work by two methods - both not suitable for real deployments: Build the .app with Jar...

Copying users in Umbraco for simplified management of permissions

Does anybody know how to easily duplicate users along with their permissions in Umbraco? It appears that the only way to set permissions is on a user-by-user basis which is not a particularly usable approach to user management. ...

Security Issues with MVC app and Crystal reports

Hi Overflowers, Hope somebody can help this poor distraught noob. I have inherited another devs app and I'm trying to add some much needed functionality to it. The issue in question is creating an Invoice from a crystal report that can be downloaded as a pdf. I got the code working in Visual Studio (It's a C# MVC application, built on...

What will report an account's permissions?

My service program executes another instance of itself with, essentially, CreateProcess(GetCommandLine()). The child process then uses OpenProcess to get a handle to its parent process (so it can detect when the parent has stopped running). For some customers, OpenProcess fails with ERROR_ACCESS_DENIED. I'm trying to determine the reason...

SVN folder (not repository-wide) permissions

I am a bit new to SVNed code. We are a small team (4 people) divided into two duos. Each of the duos has its own disjoint share of the project. I want to be able to SVN a project to a single repository with the following: each duo, should be able to write to it's own "section" of the rep'. each duo, should be able to read-only the oth...

User permissions as bits in an integer

Let's say I'm storing an integer for each user in a database that represents their assigned permissions. The number stored is the sum of the powers of two associated with each permission assigned. What's the easiest way to check to see if a certain permission was granted (within VBScript/ASP, or generally)? The best idea I have is to c...

How to prevent developers from deleting perforce depot?

I am a newbie to perforce and recently started experimenting. I am normal developer with write privileges and was able to delete the entire depot. How can i avoid this while retaining write privileges? Is there any other way other than Trigger and permission table? Also, if the developer has deleted a [depot? -msw] and submitted the ...

Impersonation NOT working - Network Share

I have created a virtual Directory (IIS 7.0), which points to a network share. This virtual directory resides under my web application root. I tried using anonymous access with domain credentials. Also, I tried using impersonation as below... <identity impersonate="true" userName="<supplied username>" password="<supplied password>" /> ...

Unable to set custom permissions in Django

Hi, I'm trying to setup some custom permissions for a Django application, but can't seem to get it working. The official documentation is a little scant, and doesn't mention (at least that I can find) how to actually set a permission? Based on a few 3rd party tutorials I found, I've extended the User class and it seems to work OK: from...

How to give permission using NSTask - objective-c

I need to basically do a "sudo" but, I need to give that kind of permission to my NSTask code. Is this possible? Thanks, Elijah ...

Adding permssions to Flex 4 UI without states.

I'm working in Flex 4.1, and I have a viewstack and tabbar as my main navigation. A user logs into the application and should then only be able to see what tabs are available to his user level. I am trying to stick with MXML as much as possible, since it works well with the framework. But I'm goin numb thinking about this. What are the ...

POCO + Entity Framework with repository pattern - permission handling

Hello. I have an application that consists of 3 layers: UI: to be implemented in ASP.NET MVC Business: Holds the business logic and resource access control Repository (DAL): Implemented with POCO objects and EF, using the repository pattern. My POCO objects are shared with the upper layers. I have questions about what information/meth...

mssql Stored Procedure permissions problem

Hello, I am testing the permissions in mssql and run into a problem. I've made a 'Countries' table and a 'spCountries' Stored procedure. Now I've made a user 'silverlight' and gave it no rights to the Countries table. The user can execute the stored procedure. Now when I do a Select it fails like it should, but in a exec spCountries, a...

make permission in IIS7

I have IIS7, web app is written on ASP.NET 1.1. I need to see files and folders in the browser when adress as like http://localhost/MyProject. Have to make permission for this? or... so, help me please UPD. Yes I know it. But when I did this I have this error Line 215: </root> Line 216: </log4net> Line 217: <system.webServe...

How to make an assets folder private in rails?

I'm using Paperclip for letting users upload photos to my app. Then, I'm saving the photos in /public/photos. Now, I want the photos being accessible just for some users. How can I set this permission system up? ...