permissions

Permissions issue in SSMS: “The SELECT permission was denied on the object 'extended_properties', database 'mssqlsystem_resource', … Error 229)”

拈花ヽ惹草 提交于 2019-12-18 05:28:09
问题 Here’s the simplest repro case possible. Create a brand new database. (I'm using SQL 2005.) Create a login, a SQL user, and a table in the new database (see sample code below). Launch SSMS and open Object Explorer, logging in as the newly-created user . Attempt to open the "Tables" folder in the Object Explorer. The Problem Fails with this error message . Message Text: TITLE: Microsoft SQL Server Management Studio Failed to retrieve data for this request. (Microsoft.SqlServer.Management.Sdk

How to give an SPGroup permissions for an SPItem?

删除回忆录丶 提交于 2019-12-18 05:09:07
问题 I tried to find a simple example how to give a certain Sharepoint group X, a permission level Y, for list item Z - but can't find example code. The shortest code I could come up with for assigning a specific user permissions ("Reader" in this case) for the item is the following: SPRoleDefinition spRole = spWeb.RoleDefinitions["Reader"]; SPRoleAssignment roleAssignment= new SPRoleAssignment("//myDomain/myUser", "none@example.org", "Name", "Notes"); roleAssignment.RoleDefinitionBindings.Add

Save File to Desktop in Vista/Windows 7 in .NET 2.0

社会主义新天地 提交于 2019-12-18 05:04:08
问题 I'm working on updating one of our applications. It must use .NET 2.0. One portion creates a file on the Desktop using FileStream fs = new FileStream(Environment.GetFolderPath (Environment.SpecialFolder.DesktopDirectory), FileMode.Create); But I get an UnauthorizedAccessException in Windows 7 (and Vista too, I'm assuming, though I haven't tested that yet). I looked into elevation (not for the entire program, but for a separate assembly which would create the file and perform actions on it);

Android Exception : java.io.IOException: open failed: EACCES (Permission denied) [duplicate]

邮差的信 提交于 2019-12-18 04:29:15
问题 This question already has answers here : Exception 'open failed: EACCES (Permission denied)' on Android (31 answers) Closed 5 years ago . For some strange reason, am constantly facing an issue with different types of Android devices, for saving the captured images on the device storage. Here, is the detailed error log, of what, actually am getting. java.io.IOException: open failed: EACCES (Permission denied) at java.io.File.createNewFile(File.java:940) at com.parkhya.pick_for_shareAflash

linux mkdir function can't authorize full permission

百般思念 提交于 2019-12-18 04:20:30
问题 I am testing the mkdir function to create a new directory: folder = mkdir("./linux", 511); or folder = mkdir("./linux", 0777); or folder = mkdir("./linux", S_IRWXU | S_IRWXG | S_IRWXO); As you can see, I try to authorize the full permission to the directory but here's what comes up with ls -l | grep linux : drwxr-xr-x 2 manuzhang manuzhang 4096 2012-01-04 06:53 linux why can't I authorize write permission for group and others? Updates : weird thing, as you guys told me I tried umask . It

Django Admin: not seeing any app (permission problem?)

坚强是说给别人听的谎言 提交于 2019-12-18 04:16:16
问题 I have a site with Django running some custom apps. I was not using the Django ORM, just the view and templates but now I need to store some info so I created some models in one app and enabled the Admin. The problem is when I log in the Admin it just says "You don't have permission to edit anything", not even the Auth app shows in the page. I'm using the same user created with syncdb as a superuser. In the same server I have another site that is using the Admin just fine. Using Django 1.1.0

android createTempFile throws permission denied?

扶醉桌前 提交于 2019-12-18 04:03:10
问题 This is simple, but not working. I am trying to create a temp file (later a permanent storage file) for preview of an MP3 file. I have tried the following variants of the suffix as following example: public class StudyFileIo extends Activity { private static final String TAG = "StudyFileIo"; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); try { File tempFooFile = File .createTempFile("foo", "dat"); Log.i(TAG,

android createTempFile throws permission denied?

╄→гoц情女王★ 提交于 2019-12-18 04:02:15
问题 This is simple, but not working. I am trying to create a temp file (later a permanent storage file) for preview of an MP3 file. I have tried the following variants of the suffix as following example: public class StudyFileIo extends Activity { private static final String TAG = "StudyFileIo"; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); try { File tempFooFile = File .createTempFile("foo", "dat"); Log.i(TAG,

Can't find file: './ci/users.frm' (errno: 13)

痞子三分冷 提交于 2019-12-18 04:01:14
问题 I installed LAMP on Ubuntu 11.04 and copy project from Windows. PHP directory (/ci/) to var/www/ and MySQL project directory (/ci/) to var/lib/mysql/ Full text of error that i get: A Database Error Occurred Error Number: 1017 Can't find file: './ci/users.frm' (errno: 13) SELECT COUNT(*) AS `numrows` FROM (`users`) WHERE `email` = 'admin@localsite.com' I googled that its permission problem, but don't know what do next. Log from /var/log/mysql/error.log: 110622 19:27:21 [ERROR] /usr/sbin/mysqld

Unable to access the IIS metabase ASP.Net

拜拜、爱过 提交于 2019-12-18 03:33:52
问题 Hi I know there are a few threads on this but none of the solutions seem to work for me. I have an ASP.Net website project which I am trying to load and publish in Visual Studio. However when I load the project I get the error: Creation of the virtuald directory http://localhost:xxxx failed with the error: Unable to access the IIS metabase. You do not have sufficient privilege to access IIS web sites on your machine. This error only occurs when I run Visual Studio as Administrator. If I don't