52
голосов
3ответов
282497 просмотров

Permission denied (publickey,keyboard-interactive)

I tried to connect to planetlab node using ssh. It throws me error like Permission denied (publickey,keyboard-interactive). What does this mean? Here is the verbose of the exception. > OpenSSH_5.1p1 Debian-5ubuntu1, OpenSSL > 0.9.8g 19 Oct 2007 debug1: Reading configuration data /etc/ssh/s...

0
голосов
1ответов
166 просмотров

CGI application throws “System.Security.Permissions.SecurityPermission”

I'm working on a simple .NET application which is supposed to run under IIS6 through CGI. First of all everything works great on my Windows 7 development machine under IIS 7.5. But I'm stuck with “System.Security.Permissions.SecurityPermission” under IIS6. I've already tried to sign the assembly...

0
голосов
3ответов
1083 просмотров

Determine the SharePoint Sites and Webs That A Specified User Can Access Programmatically?

I need to determine the sites and webs that a specified user can access in a SharePoint web application via the SharePoint API. Note the specified user is different from the current user that is calling the code. I initially was thinking of making use of the PortalSiteMapProvider, but it does n...

0
голосов
1ответов
1549 просмотров

Sharepoint permissions with Windows Authentication and custom Role Provider

What I'm trying to do is the following: I want to use Custom Role Provider's role name into a sharepoint group (maybe like visitors) to restrict permissions and users resolved automatically with AD without a login page. To do that : I've created 1 sharepoint webapp and 1 extension of this web...

1
голосов
1ответов
3086 просмотров

AccessControlException when connecting to HTTP server from Tomcat servlet

I'm trying to make my tomcat servlet download a number of files, but I have apache and tomcat running on the same server, so I assume that is why it doesn't work. I've tested on servers not running apache, and all is well. Here's the exception I'm getting when I try to use new Url( fileUrl ).ope...

18
голосов
1ответов
12412 просмотров

Dropping privileges in C++ on Windows

Is it possible for a C++ application running on Windows to drop privileges at runtime? For instance, if a user starts my application as Administrator, but there's no reason to run my application as administrator, can I in some way give up the Administrator-privileges? In short, I would like to...

0
голосов
1ответов
349 просмотров

Infopath SharePoint Document Libraries

I need to display a list of document libraries a user has permission to on an infopath form for a workflow. I can build my list of libraries just fine but I can not for the life of me figure out how to populate (in anyway) the infopath form with the list of libraries and allow the user to somehow...

5
голосов
1ответов
5736 просмотров

File permissions do not inherit directory permissions

I have a program that's creating a secure directory for user output. This is working correctly, but the files I create in it (or copy to it) are ending up with only administrator access. DirectoryInfo outputDirectory = baseOutputDirectory.CreateSubdirectory(outputDirectoryName, ...

4
голосов
1ответов
1620 просмотров

Prompt the user to install ActiveX/.Net Class Library from browser

I build a .NET Class Library project that accesses the mshtml.HTMLDocument when called (from JavaScript). Everything works ok on my machine since I changed the permissions in .NET Configuration for Trusted Sites to have Full access. But for the end users I would like Internet Explorer to prompt ...

3
голосов
2ответов
2441 просмотров

How do I appease FxCop when a property getter/setter needs LinkDemand?

I have a property Foo on a class Bar: public int Foo { get { return GetFoo(); } set { SetFoo(value); } } Both GetFoo and SetFoo are decorated with: [SecurityPermission(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.UnmanagedCode)] As a result, FxCop ...

1
голосов
1ответов
2763 просмотров

File.Exists() incorrectly returning false from ASP.NET - security issue related to Thread vs Process identity?

I have an ASP.NET app using Windows authentication, and I'm testing for the existence of a file on a remote server. I'm authenticating as MYDOMAIN\my.username - this works. The file is \MYSERVER\WebShare\example.txt. This file exists. I can open it from various hosts whilst logged in as MYDOMAI...

2
голосов
2ответов
3982 просмотров

In ASP.NET, what to use to manage roles and permissions assigned to roles?

I am working on a ASP.NET web application. I have this well known issue: each user can belong to one or several roles (admin, public users), and each role can have one or several permissions (can edit, can delete, can upload, etc.) and vice versa. I want to do smth like this: [http://demo.sitefin...

0
голосов
1ответов
1716 просмотров

Running PHP with CURL to copying file to shared folder gives permission denied error

I'm using Windows on my servers. I have to periodicly download some file to SERVER1 from FTP server. And then copy those files to shared folder on SERVER2 after downloading them. For this job, I write a PHP script and I scheduled it with CURL within .BAT file like: c:\curl\curl.exe http://loc...

1
голосов
2ответов
232 просмотров

Need a separate role for adding Users in MOSS 2007

I want to have user rights split into two. Some of the policies at the client's side mention that we should have a seperate user who has only the rights to add users and nothing else, and the Site Administrator should not be able to add users. As of now, the Site Admin is used to Add users and t...

0
голосов
1ответов
282 просмотров

ASP.NET security permission message

I implemented the ASP.NET security model and I am allowing/denying access to users in the web.config based on what roles they are in e.g. <system.web> <authorization> <allow roles = "Admin" /> </authorization> </system.web> When I try and visit a pag...

0
голосов
1ответов
435 просмотров

SQL Server 2008: What does it mean to grant a user "AUTHORIZATION" over a schema?

I see the following in one of my database scripts: CREATE SCHEMA [ContosoSchema] AUTHORIZATION [ContosoDeveloper] GO My question: In SQL Server 2008, what does it mean to grant a user "AUTHORIZATION" over a schema?

20
голосов
10ответов
115320 просмотров

How to resolve /var/www copy/write permission denied?

I am a newbie in php, mysql. I have written a hello.php script, which I am trying to copy into /var/www directory (and will later want to open it through web browser). The problem with the same is that I am not allowed to save/write any files in /var/www despite me being the root. I tried impleme...

0
голосов
2ответов
1493 просмотров

Deny access to a folder in ASP.NET

is it possible to prevent browsing of a folder contents in an ASP.NET web application other than creating a default page, say using web.config? I would like to avoid using IIS for this if possible. Thanks

3
голосов
2ответов
7799 просмотров

ASP.NET - Reading and writing to the file-system, outside the application

Is there a way to access the file-system outside of the current ASP.NET application, without going around giving IIS_IUSRS permissions? For example, if I wanted this line to work: logStream = File.Open("C:\logs\app.log", FileMode.Append, FileAccess.Write, FileShare.ReadWrite); ... I'd have to ...

0
голосов
3ответов
132 просмотров

How to implement permissions in a blogging system?

I am rolling my own blogging system and I am wondering how to determine permissions and implement them in a blogging system? What should be the permissions for a commenter, a blogger and an admin? What is the best way to implement them?

7
голосов
1ответов
13446 просмотров

writing files to Common Application Data folder denied

i have used the follwing function to write data to user application folder private void WriteToLog(string source, string method, string msg) { string LogFile =Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) + "\test"; LogFile = LogFile + "\Log.txt"; Str...

57
голосов
7ответов
130917 просмотров

The SELECT permission was denied on the object 'sysobjects', database 'mssqlsystemresource', schema 'sys'

SETUP: SQL Server 2005 & DotNetNuke 05.01.02. This started with me trying to install a DNN Module that had "select * from dbo.sysobjects" in it's SQL scripts. That failed with the following error: The SELECT permission was denied on the object 'sysobjects', database 'mssqlsystemres...

10
голосов
2ответов
3450 просмотров

What are the minimum permissions a user needs to install and run a ClickOnce application based on .NET 3.5?

Googling reveals many technical details and framework/OS prerequisites, but it seems to be hard to find a source that lists the permissions that are required for installing and running a ClickOnce application. This is especially interesting for delivering software to customers that work in large...

1
голосов
1ответов
5740 просмотров

MS Access - "You don't have permission to read [REPORT NAME]", object owner <unknown></unknown>

A client is receiving a "You don't have permission to read [REPORT NAME]" error message when attempting to launch a report in a MS Access database. When I go to the “Change Owner” tab under Tools&gt; Security&gt; User Groups and Permissions, the owner is . If I attempt to change the owner, I ge...

2
голосов
1ответов
2727 просмотров

Get Item Level Security using SharePoint WebServices

I am able to get the Permissions associated with a List or a Site using Permissions.GetPermissionCollection (ObjectName, ObjectType). The ObjectType parameter will accept either a Site or a List. Is there any way with the out-of-the-box webservices to get the Permissions associated with a ListIte...

0
голосов
1ответов
454 просмотров

Setting file permissions using Rake

I'd like to set the file permissions for a copied file using a rake task. Is this possible?

0
голосов
1ответов
185 просмотров

permissions aware (icon) action links for all models: how?

I have several models, for which I want to show some common icons for action links (new, details, edit, delete) and some specific ones for certain models only; these iconlinks must only be showed when the user has permission to perform the action. Permissions are decided by roles, but I'd like to...

1
голосов
1ответов
604 просмотров

System.Security.Permissions.MediaPermission Exception when load image in dll

I'm developing an application using C# in .Net Framework 3.5. In the application I create several objects from different dll (also developed in C#) using reflection. All this objects extend an abstract class (AApplication): private AApplication BuildApplication(string path) { Ass...

12
голосов
3ответов
68730 просмотров

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

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...

2
голосов
1ответов
2598 просмотров

Permission for a SharePoint document using MOSS web services

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 prov...