permissions

rmi java.security.policy access denied

霸气de小男生 提交于 2020-01-06 15:56:59
问题 I am new to RMI topic in java and i wana to create client server applicaiton using RMI, i followed this tutorial found in this link : RMI Tutorial using eclipse but i am using netbeans ,and here is server code: import java.rmi.*; import java.rmi.registry.LocateRegistry; import java.rmi.registry.Registry; import java.rmi.server.*; public class AdditionServer { public static void main (String[] argv) { try { if (System.getSecurityManager() == null) { System.setSecurityManager(new

What causes Permission denied errors when deleting files?

人走茶凉 提交于 2020-01-06 13:58:49
问题 I am trying to delete /var/www/main/user_resources/documents/NewFolder1/NewFolder1/noname3.php using PHP. As shown below, the file's owner and group is phped, it is group writable, and Michael belongs to the phped group. I am using Centos with Apache. [Michael@devserver NewFolder1]$ pwd /var/www/main/user_resources/documents/NewFolder1/NewFolder1 [Michael@devserver NewFolder1]$ ls -l total 4 -rwxrwxr-x. 1 phped phped 15 Jan 5 07:02 noname3.php [Michael@devserver NewFolder1]$ groups Michael

PHP Script to Force Download Not Working

*爱你&永不变心* 提交于 2020-01-06 08:44:10
问题 I had a simple little php code that allowed me to force users to download videos from my site rather than playing it in the browser <?php $path = $_GET['path']; header('Content-Disposition: attachment; filename=' . basename($path)); readfile($path); ?> Since I moved my site to a new server, there seems to be a permission problem where I am getting a 403 Forbidden "You don't have permission to access /download-stream.php on this server." the php file is set to the same permissions as before

SQL Server : View permission to table

拈花ヽ惹草 提交于 2020-01-06 08:25:35
问题 Is it possible to grant a user access to a view but restrict the user from accessing the table the view selects from? CREATE TABLE [dbo].[tUsers]( [ID] [int] IDENTITY(1,1) NOT NULL, [Username] [nvarchar](50) NULL, [Password] [nvarchar](50) NULL, [TenantID] int ) ON [PRIMARY] CREATE VIEW [scmTenant1].[vUsers] AS SELECT ID, Username, Password FROM dbo.tUsers WHERE TenantID = 1 The SQL Server user account ( usrTenant1 ) has access to schema scmTenant1 but does not have access to the dbo schema.

Best way to implement a file access check in a loop

三世轮回 提交于 2020-01-06 08:16:35
问题 I'm trying to find a better way to check for file access in a loop. Here's my code: while (true) { try { using (FileStream Fs = new FileStream(fileName, FileMode.Open, FileAccess.Write)) using (StreamReader stream = new StreamReader(Fs)) { break; } } catch (FileNotFoundException) { break; } catch (ArgumentException) { break; } catch (IOException) { Thread.Sleep(1000); } } Here's what I've tried so far, but it does not work has exprected: FileIOPermission writePermission = new FileIOPermission

Google Container Registry permission

浪子不回头ぞ 提交于 2020-01-06 08:05:29
问题 I am trying to push docker image to GCP, but i am still getting this error: unauthorized: You don't have the needed permissions to perform this operation, and you may have invalid credentials. To authenticate your request, follow the steps in: https://cloud.google.com/container-registry/docs/advanced-authentication I follow this https://cloud.google.com/container-registry/docs/quickstart step by step and everything works fine until docker push It's clear GCP project I've already tried: use

Permission is not letting Service interact with mounted virtual folder / drive

随声附和 提交于 2020-01-06 07:17:10
问题 I'm mounting a folder to a virtual disk like this (I'm on Windows XP): subst z: c:\virtual_disk This works perfectly okay for one thing, I have a Service (created with C++ / CreateService(...) ) running and it can write files to c:\virtual_disk but not to z:\ I'm using classic fopen, fwrite etc. I have, I think, narrowed down the problem to some sort of permission problem, I'm not sure though. The service runs on the "localSystem" account and the folder is mounted by me using an administrator

How do I grant access to my COM+ application?

纵饮孤独 提交于 2020-01-06 07:15:37
问题 I've created a COM+ server application and the caller can't access it - when it tries to instantiate a COM object ( CoCreateInstance() ) from that application the following appears in system log: The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID {class id of COM object here} and APPID {app id of the COM+ application here} to the user MACHINENAME\administrator SID (SID here) from address LocalHost (Using LRPC). This

Django Admin wont allow me to allocate permissions to Users or Groups

一世执手 提交于 2020-01-06 06:11:07
问题 I am using django 1.8.6 and have a new application created in a virtualenv using python manage.py startproject. I have set up my INSTALLED APPS and my database settings (postgresql) and I have run migrate to create the backend. So far all seems fine. I then created a superuser using the createsuperuser command and that all seemed to go fine too. My admin.py file is in place and the content of which is as follows: from django.contrib import admin from django.contrib.admin import AdminSite from

Django Admin wont allow me to allocate permissions to Users or Groups

一世执手 提交于 2020-01-06 06:10:16
问题 I am using django 1.8.6 and have a new application created in a virtualenv using python manage.py startproject. I have set up my INSTALLED APPS and my database settings (postgresql) and I have run migrate to create the backend. So far all seems fine. I then created a superuser using the createsuperuser command and that all seemed to go fine too. My admin.py file is in place and the content of which is as follows: from django.contrib import admin from django.contrib.admin import AdminSite from