tagged [permissions]

User/Group Permissions in Active Directory

User/Group Permissions in Active Directory Where can I find an example that does the following? 1. Pulls a user from Active Directory. 2. Gets the groups the user is a member of. 3. Gets a list of per...

27 Jul at 21:49

Can I simply 'read' a file that is in use?

Can I simply 'read' a file that is in use? I am trying to use a StreamReader to read a file, but it is always in use by another process so I get this error: > The process cannot access the file '\arf...

warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777

warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777 Every time I run this command `rails server`: > warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777 I sea...

How to require one permission *or* another permission to access a ServiceStack web service?

How to require one permission *or* another permission to access a ServiceStack web service? The following code demonstrates how to require that a user have two separate permissions in order to be gran...

13 Jun at 19:28

sudo echo "something" >> /etc/privilegedFile doesn't work

sudo echo "something" >> /etc/privilegedFile doesn't work This is a pretty simple question, at least it seems like it should be, about sudo permissions in Linux. There are a lot of times when I just w...

6 Mar at 01:57

WAMP error: Forbidden You don't have permission to access /phpmyadmin/ on this server

WAMP error: Forbidden You don't have permission to access /phpmyadmin/ on this server I am new to [WAMP](http://en.wikipedia.org/wiki/WAMP) and I have just installed it today. The setup went well and ...

24 Apr at 14:55

How do I detect if a function is available during JNLP execution?

How do I detect if a function is available during JNLP execution? I have an application which should be installed, but does work fine when deployed using JNLP. However, it would seem that some Java fu...

NSCameraUsageDescription in iOS 10.0 runtime crash?

NSCameraUsageDescription in iOS 10.0 runtime crash? Using `iOS 10.0` last beta. I had tried to use Camera to scan barcode in my app, and it crashed with this runtime error. > This app has crashed beca...

file_put_contents - failed to open stream: Permission denied

file_put_contents - failed to open stream: Permission denied I am trying to write a query to a file for debugging. The file is in `database/execute.php`. The file I want to write to is `database/queri...

28 Aug at 13:53

Accessing Environment Variables from Windows Services

Accessing Environment Variables from Windows Services I am attempting to write a Windows Service in C#. I need to find the path to a certain file, which is stored in an environment variable. In a regu...

26 Sep at 11:50

How to forbid calling a method C#

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. I need only AllowedMethod could call TargetMethod. How to do it us...

23 Apr at 07:16

How to make a "Read only" file?

How to make a "Read only" file? I'm using the C# `StreamWritier` class. Questions: 1. How can I make a file read-only, so that no one can delete or write to it? 2. How can I make a hidden file? I'm cr...

How do I use sudo to redirect output to a location I don't have permission to write to?

How do I use sudo to redirect output to a location I don't have permission to write to? I've been given sudo access on one of our development RedHat linux boxes, and I seem to find myself quite often ...

Restricting database access to specific Windows groups in SQL Server 2008

Restricting database access to specific Windows groups in SQL Server 2008 I'm trying to restrict access to a database on my server to only allow users from a specific Windows group. I have enabled Wi...

Forbidden You don't have permission to access /wp-login.php on this server

Forbidden You don't have permission to access /wp-login.php on this server I have one problem with all my WordPress's sites. I can access in all and navigate in the posts, pages and other. But when I ...

20 Jun at 09:12

Browser application & local file system access

Browser application & local file system access I want to enhance my browser-based web application with functionality that enables management of local files and folders. E.g. folder tree structures sho...

iOS 10 - Changes in asking permissions of Camera, microphone and Photo Library causing application to crash

iOS 10 - Changes in asking permissions of Camera, microphone and Photo Library causing application to crash iOS 10, Now Requires User Permission to Access Media Library, Photos, Camera and other Hardw...

11 Apr at 07:5

PowerShell To Set Folder Permissions

PowerShell To Set Folder Permissions I am trying to use the "default" options in applying folder permissions; by that, I mean that using the "Full Controll, Write, Read, etc" in the 'Properties' for a...

28 Dec at 14:2

Apache 13 permission denied in user's home directory

Apache 13 permission denied in user's home directory My friend's website was working fine until he moved the document root from `/var/www/xxx` to `/home/user/xxx`. Apache gives 13 permission denied er...

15 Oct at 06:32

Is no FileIOPermission on paid webhosting normal?

Is no FileIOPermission on paid webhosting normal? I'm currently buying webhosting on a shared server with uses IIS6 and ASP.NET2.0 (They advertise 3.5 but investigation on my part has proven this to b...

13 Feb at 02:56

Storage permission error in Marshmallow

Storage permission error in Marshmallow In Lollipop, the download functionality works fine in my app, but when I upgraded to Marshmallow, my app crashes and gives this error when I try to download fro...

Re-assign host access permission to MySQL user

Re-assign host access permission to MySQL user I have several thousand MySQL users all set to allow access from a specific host. The problem is that now I'm going to have two machines (more in the fut...

1 Sep at 05:18

How do I change the owner of a SQL Server database?

How do I change the owner of a SQL Server database? When I accidentally click on the Database Diagrams tab, I get one of the following errors: > Database diagram support objects cannot be installed b...

How do I check whether File.Delete() will succeed without trying it, in C#?

How do I check whether File.Delete() will succeed without trying it, in C#? In C#, System.IO.File.Delete(filePath) will either delete the specified file, or raise an exception. If the current user doe...

18 Sep at 12:5

C# - Set Directory Permissions for All Users in Windows 7

C# - Set Directory Permissions for All Users in Windows 7 This should be a fairly simple problem, but for some reason I can't seem to get this to work. All I'd like to do is set the permissions on a g...

29 May at 21:14