permissions

how do copyright permission systems for content hosting sites work?

I am wondering about subscription sites that host content, like recorded performances from concerts. I'm sure there is a tangle of copyright permissions that must be granted for these video/audio files to be hosted. For example, if a band plays a cover of another band's song, permission must be obtained from not only the band that perfo...

Determine what account IIS 7 is using to access folders (and other resources)

Often, out of sheer desperation I will end up enabling "Everyone" access on a folder that a web app is accessing (perhaps for file creation, reading, etc) because I can't figure which user account to enable access on. Obviously, this is a very bad thing to do. Is there a way to determine what account IIS is using at that exact moment t...

0x80070005 (E_ACCESSDENIED) In an ASP.NET application while trying to use Windows Task Scheduler

Hi All I am currently working on an ASP.NET application in VB.NET and one of its functions is to use the Windows Task Scheduler. The application will need pretty much full control over this as it needs to Create, Modify, Delete and Run tasks. I found this library to help with the whole thing and it works well but only locally on my Win...

Drupal menu permissions question

I'm creating an admin module for my client that gives them access to some administration functionality concerning their content. I'm starting off by adding some permissions in my module by implementing hook_perm: function mymodule_perm() { return array( 'manage projects', ); } I can then create my menu by adding to th...

can't write to physical drive in win 7??

I wrote a disk utility that allowed you to erase whole physical drives. it uses the windows file api, calling : destFile = CreateFile("\\\\.\\PhysicalDrive1", GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING,createflags, NULL); and then just calling WriteFile, and making sure you write in multiples of s...

PHP/MySQL User system w/ groups.

I have a user system set up in a 'users' table, and I have groups set up in a 'groups' table. Essentially, I want users to be able to join any and all the groups that they want, in the same was as one would on facebook. How would one go about structuring this in a mysql/php database system? Just a quick summary would be helpful! I've l...

Using WPF class in a web application, problem with hosting permission

I'm developing a DLL that uses WPF classes to make image manipulation. It works fine in my local environment, but when I try to use it in an hosted web site I retrieve this error: Request for the permission of type 'System.Security.Permissions.MediaPermission, WindowsBase, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e...

ClickOnce permissions

We recently updated our main website. This included creating a new directory to hold the new site; then, some of the existing subdirectories needed to be copied over. Some of the virtual directories below the main site are clickonce publishing locations. These have been 100% successful publishing locations for 3 years now. We would updat...

Activate COM object using website doesn't work in Windows 2003 server

I have been trying really hard to activate and launch a COM object using an ASP.NET web application. The aspx website has a code-behind file that has a reference to this COM object (which is an actual application - a CAD software). When required, the VB code creates (or launches) the application. The complete set-up works in a Win-XP (3...

Not able to open a file in php

The code chokes at fopen(): <?php ini_set('display_errors',1); error_reporting(E_ALL); $fp = fopen("/path/to/file/some_file.txt","a") or die("can't open file"); fwrite($fp,"some text"); fclose($fp); ?> And the resulting web page says: "Warning: fopen(/path/to/file/some_file.txt) [function.fopen]: failed to open stream: Pe...

Can you set SQL Server permissions from a Silverlight app?

Is it possible to create a Silverlight application which can be used to provide a nice user interface for managing SQL Server permissions? We want to create a simple admin app to allow certain users to create new users, disable old users, and manage specific permissions for those users, but we feel that SQL Server Management Studio is p...

database importing problem with sql server

Hi, I have a database working in my local sql server 2005 express edition. I have to import my local database to a remote server database. For that i established connection to that remote server, and i can now see that database . but when i tried to restore database from my local machine i'm getting an error message when i tried to gi...

How can I perform action from ASP.NET MVC with different user credentials?

Hopefully this explanation will make sense, but what is the best way (if it is even possible) to pass along user credentials to preform a specific application from an ASP.NET MVC application. Currently I am working on trying to create directories on another server, we can't do this using the generic credentials that the application is ru...

Unable to connect to UNC share with WindowsIdentity.Impersonate, but works fine using LogonUser

Hopefully I'm not missing something obvious here, but I have a class that needs to create some directories on a UNC share and then move files to the new directory. When we connect using LogonUser things work fine with no errors, but when we try and use the user indicated by Integrated Windows authentication we run into problems. Here's s...

How to retrieve brand and model info by code on Android ?

There is an class android.os.Build that got static variables cointaining device info, but when i try to access it I allways get a runtime exception. E.x on how I try to access it: String model = Build.MODEL; I always get an Exception like this: 04-14 14:57:45.266: ERROR/AndroidRuntime(770): java.lang.VerifyError: com.mypackage.Main ...

Detecting permission errors in django tests

I'm writing detailed functional tests for my views to complement the unit tests on my models. It's a Django project and I'm using the built in Django test framework with unittest. Obviously, one of the important things to check in these functional tests is that the permissions are set up correctly. With that in mind, I'm attempting somet...

CopSSH SFTP -- limit users access to their home directory only

Let me preface this by saying I've read and followed these instructions at the FAQ many times: http://www.itefix.no/i2/node/37 It does not do what the title claims... It allows every user access to every other user's home directory, as well as access to all subfolders below the copssh installation path. I'm only using this for SFTP ac...

A way to launch x applications as administrator automatically (Windows xp)

The problem is that in our clients their normal user doesn't have administrator privileges so when they have to install or update our programs they have to log again as administrator to install them and then log as their user which is cumbersome... As some updates are automatic the "run as" solution isnt a valid one... One good idea wo...

setting write permissions on theme subdirectory?

I've a theme which supports multiple templates, each with a header background image whose color can be set by the site owner via a colorpicker widget in my theme's options panel. This has the effect of opening the background image, recoloring it and resaving it back to the server. I've had zero issues with this routine until recently wh...

Can I chgrp a directory through Subclipse?

I develop on one machine in Eclipse. When I commit the files to the server, the owner is set to 'svn' and the group is set to 'daemon' (neither of which are me). I'm trying out a framework. It requires one of its directories to be writable by Apache. Apache is group 'nobody'. I'd like to chgrp nobody /path/to/directory but I can't do i...