permissions

Executing user-supplied ruby code on a web server

I would like to let my users create Ruby scripts that do computation on some data residing on the web server and then outputs results. The scripts are executed on the server. Is there any way to do this securely? More specifically, I would like to: restrict the resources the script can use (memory and cpu), and limit its running time ...

Is my site blocked by Content-control software?

Is there a way to check if your site is blocked by Content-control software such as Net Nanny and others? ...

Recursive mkdir() and chmod()?

When using mkdir() with the recursive flag set to true do all the created directories get the specified chmod or just the last one? For example: mkdir('/doesnotExist1/doesnotExist2/doesnotExist3/', 0755, true); Will the newly created directories /doesnotExist1/ and /doesnotExist1/doesnotExist2/ also get the same chmod as /doesnotExist...

Unique subscriptions

Architectural question for a classic ecommerce problem: I researched and didn't see a good solution. We're looking to create a subscription model where a person is given access to content. We're looking for ways to constrict people from sharing login/passwords. The hash combination of password + machine name wont work because our solu...

Which permissions does Eclipse need to run fine? (Vista / Domain)

Hi, I installed Eclipse and I have some trouble which refer to denied user permissions , as far as I can see. I am working on Vista inside an Windows domain. My user account is very restricted. My boss needs to input his admin pass everytime I need to install any application and even to establish new network connections through the fir...

PHP session permission problem

Hi I'm trying to initialize a session but i get this error: Warning: session_start() [function.session-start]: open(/tmp/sess_7af3ee9ec1350680bedcf63833d160bd, O_RDWR) failed: Permission denied (13) The session.path is set to /tmp with 777 perms. I try to edit the session.path to "0;777;/tmp" but the session files are created with...

How to forbid calling a method C#

I want to allow calling the method only from the particular methods. Take a look at the code below. private static void TargetMethod() { } private static void ForbiddenMethod() { TargetMethod(); } private static void AllowedMethod() { TargetMethod(); } I need only AllowedMethod could call TargetMethod. H...

Determine if Windows process has privilege to create symbolic link

I want to programmatically determine if the current user (or process) has access to create symbolic links. In Windows (Vista and greater), one cannot create a symbolic link without the SeCreateSymbolicLinkPrivilege and by default, this is only assigned to administrators. If one attempts to create a symbolic link without this privilege, a...

What permissions for PHP scripts/directories?

Hi, I am trying to help a friend moving a web-site from one web-hotel to another. The old place is already closed, I have only a flat tar file of what was in it. I apologise if this is a basic question. I am new to this... The web site contained html docs and one could download a little java application (to be loaded on mobile phone) ...

Suggested file location that will be editable by all windows users?

I'm building a product that involves a windows service caching data on the local machine, user processes reading that data and writing their own data, the service in turn writing back that data to a server. Where should I put the data files for this, such that they'll be shared by all users and read/writable? The software will op...

Insufficient permissions for setting the configuration property 'checkCertificateName'

Hi Friends, I have hosted my web site on go-daddy with shared hosting plan.when i am trying to browse any page which content logic to send email i get below error Insufficient permissions for setting the configuration property 'checkCertificateName' But page without the send email logic working fine so any can help me to resolve thi...

Anyway of making Django CMS pages to be only accessible (site side) to only a select few?

I've installed Django CMS (http://www.django-cms.org/) and it's almost perfect. I've been chatting on the IRC #django-cms group and it's been confirmed to me that I can't have access restricted to the pages I make in Django CMS to only a select few on the site side. I know of the CMS_PERMISSIONS setting, but this seems to only restrict ...

Mixed ftp ssh permission problem

Hi, I'm running a webserver and I've setup two groups. One with just me, and another with me and a collaborator. I've chmodded to 755 my htdocs folder and I gave a specifically "upload" dir the group shared with my collab. So now my collab (via sym link) is able to upload some files via sftp, but he can also traversing all the directorie...

PHP exec() call never runs

I believe this is a permissions issue, but not sure how to fix it. I have a php script -- mainscript.php -- that calls: $scriptCall = "/usr/bin/php wrap_prep.php 2>&1 &"; When running mainscript.php, the wrap_prep.php never executes. However, when I log into my webserver as root and run php wrap_prep.php 2>&1 & it works fine. I ha...

Determining Whether a Directory is Writeable

Hi Stackoverflow, What would be the best way in Python to determine whether a directory is writeable for the user executing the script? Since this will likely involve using the os module I should mention I'm running it under a *nix environment. ...

Filesystem operations don't work from my PHP script; do I need to chmod something?

I am having some permissions problems with mkdir in PHP. I am trying to simply move some files around (and create a folder to put them in), but I am getting this error: mkdir() [function.mkdir]: Permission denied in On my old site, I had my folders set to 755 and things seemed to work fine. It seems like the only time I can get mkdir ...

iPhone: Core Location to keep asking for user permission

Hi.. I have an app that ask for user's Location. Then user's location will be send to a server. Since the app that was run on first time on a iPhone will ask for permission, if a user rejects it, the app will keep on asking it on next time until it was allowed (AFAIK); but if the user allows the app to use the location twice, the app wi...

Network service vs AspNet (Asp.Net Machine Account)

I've a small asp.net application which write logs on the file system in a directory 'Logs'. I've given the modify permission to Asp.Net machine account for this folder which works fine. However when I tried to deployed it to the another server it doesn't work. I have to give the same modify permission to Network service account also. Wh...

When to use a single-group or multi-group permission system?

As far as I'm aware there are two main styles of permissions systems out there. I would like to know if the multi-group option is really worth the extra trouble or system load (more queries). It seems that with proper application design there is no need for users to have more than one class - though my applications have never made it big...

ACL on field level in Grails

Hello, in our new software project, we have the following requirement: A webpage shall show a set of data. This data shall be editable by some users (assigned to roles, i.e. manager), and only viewable by others. The tricky part is described by an example: A User-page consists of address data and account information. The addess data sha...