permissions

Calling a custom SharePoint web service from ASP.Net AJAX gives a 403 error?

I have developed a custom SharePoint web service, and deployed it to /_vti_bin/myservice.asmx. As a "regular" user, browsing to that ASMX URL works fine. When I try to browse to "/_vti_bin/myservice.asmx/js" as required to call this service from ASP.Net AJAX, I get a 403. If I browse to it as no less than a farm admin (site collection...

'htdocs' folder in XAMPP for linux belongs to "nobody" after installing, why?

Hi, after installing XAMPP on linux i have seen the folder "htdocs" belongs to "nobody". Has this any intention? Do you think owning that folder is a good practice? Regards Javi ...

Why can't untrusted code change the log level under Java Logging?

I'm have a Java app that also runs as an applet. The app also happens to use a library called BasicPlayer to play .ogg files. BasicPlayer has a built-in logger that uses Apache Logging Commons to create a logger for BasicPlayer.class using the built-in Java logger. The only way that I know about to turn off the BasicPlayer logging is ...

What's causing this permission's error and how can I work around it?

Warning: move_uploaded_file(/home/site/public_html/wp-content/themes/mytheme/upgrader.zip) [function.move-uploaded-file]: failed to open stream: Permission denied in /home/site/public_html/wp-content/themes/mytheme/uploader.php on line 79 Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phptempfile' to '...

Rails object based permission/authorization engine?

Hi I want to add "Sharing documents" feature to my app, like in google documents service. As i see: User can: can list/view/create/edit/delete own documents share own document to everyone - its a public document share own document to another user with read-only access share own document to another user with read-write access view li...

FTP Error: No control connection for command: Permission denied

Hi, I am trying to access a external ftp server through my company's FTP proxy from a bash prompt and I am getting the below issue after I enter the user name 421 Service not available, remote server has closed connection Login failed. No control connection for command: Permission denied The proxy works fine for all other sites but I...

Recommendations on SharePoint site permission model

Hi All, I have a SharePoint site which contains a root site and site collection in it. Now there are some sites that inherits permissions from their parent site and some site has their own permission module. Now a user from owner group of root site browses site collection but there are few site which doesn't allow user to view the conte...

Can't access log files in production.

I was trying to run my application and check for some output on the production.log. However Ruby on Rails throws this error. Apache log Rails Error: Unable to access log file. Please ensure that /var/www/somefolder/someapp/log/production.log exists and is chmod 0666. The log level has been raised to WARN and the output directed to STDER...

What permissions does an approver need to edit and approve a document?

If an Approval workflow assigns a task to approve a document to a user, that user receives an email which prompts them to: review the document, and modify if necessary edit the task to show as approved Does being assigned the approval task automatically elevate the user's permission levels in order to allow them to carry these action...

Why can't I use shell_exec from a PHP script on a network share in IIS?

I have some PHP scripts that reside on a network share. For argument's sake, let's call the share \\nas\dev. I have a Web Site on \\w2k3dev\ set up in IIS6 that uses \\nas\dev\ as its home directory by setting "A share located on another computer". Some of my scripts use shell_exec to execute functions on the server and return results t...

Configuring security in ASP.NET MVC at runtime

Is it possible to have security in ASP.NET MVC configurable at runtime? For example, if I have a controller that has been marked as [Authorize(Roles="Admin")] Is there a way to add/remove roles at runtime? Or, do you have to change it in code and re-compile? ...

Drupal is unable to create the "files" folder (and any upload php script as well)

hi, Drupal cannot create the "files" folder. I tried to upload a php script with mkdir("files",774) but I get a permissions error, so basically any php script is not able to create a folder on the server... What do you suggest ? If I create the folder manually from ftp client and I assign 777 permission everything works perfectly, but ...

Java: What are the various available security settings for applets

I have an applet that throws this exception when trying to communicate with the server (running on localhost). This problem is limited to Applets only - a POJO client is able to communicate with the exact same server without any problem. Exception in thread "AWT-EventQueue-1" java.security.AccessControlException: access denied (java.net...

Implementing IPermission

Hi there, I'm considering writing a custom IPermission implementation but am not clear as to how it should work. I've already implemented IPrincipal and IIdentity. What I would like to accomplish is to be able to check permissions vis a vis the current IPrincipal's authorizations rather than its roles. Generally, authorizations are read...

PHP chdir() permission denied for local directory

I'm working on a PHP script that runs a Python script on the server. My server is running CentOS 5.4 with Apache 2.2.3 and PHP 5.1.6. This is the PHP code: chdir("/home/cjones/git/pywrapper"); $output = shell_exec("python /home/cjones/git/pywrapper/wrapper.py"); This give me this error: Warning: chdir() [function.chdir]: Permission...

Change / Check permissions (Read, Write,...) for the NETWORK SERVICE account with C#

How can I change / check the permissions (Read, Write,...) for a specific folder for the NETWORK SERVICE account with C# porgrammatically ? ...

read only permission in admin interface

Hi all, I saw this post, http://stackoverflow.com/posts/1348076/revisions , only at step 3 i'm getting confused, he tells to put 3. Add "get_view_permission" to default model class but what's the default model class? It doesn't seem to work to me, i get following error message: AttributeError at /admin/ 'Options' object has no attri...

Finding out what user Apache is running as?

I want to secure a file upload directory on my server as described beautifully here, but I have one problem before I can follow these instructions. I don't know what user Apache is running as. I've found a suggestion that you can look in httpd.conf and there will be a "User" line, but there is no such line in my httpd.conf file, so I gu...

Drupal: How long should it take to rebuild permissions

I have just installed the ACL and Content Access module. Imedietly after enabling them I was asked to rebuild the permissions. All perfectly normal I am told. However, I set the 'rebuild' permissions page running about 40 minutes ago and it still says 'Initializing'. How long should it take? Am I doing something wrong? ...

What does shutdownHooks RuntimePermission does?

I saw that to show a JOptionPane message dialog I need the shutdownHooks permition. What does it do? And what's the possible risk of give this permission to third party code? ...