permissions

Set permissions for directory and child items

爷,独闯天下 提交于 2019-12-23 03:35:09
问题 My program to copy some directory, with subdirectories and files from server to local computer. I need, each local user can to modify it (edit/delete/remove/rename). But now it can do owner only. How can I set necessary permissions for copied directory, and its child items? I try such code: String account = Path.Combine(Environment.MachineName, "Users"); FileSystemRights rights = FileSystemRights.FullControl; AccessControlType controlType = AccessControlType.Allow; DirectorySecurity security

Best way to manipulate Windows ACL permissions

风格不统一 提交于 2019-12-23 03:12:58
问题 My goal is to find out how to programmatically adjust permissions on files & directories in Windows using .NET. I have identified the following options: Windows API (yuck!) Active Directory Service Interfaces (COM... ugh...) Windows PowerShell (?) Google for an easy-to-use facade. None of these seem very palatable to me. Which route would you guys take? Perhaps there's another way? 回答1: You can do this type of thing using the FileSecurity class 来源: https://stackoverflow.com/questions/1278099

Set up users roles and permissions in parse.com

喜欢而已 提交于 2019-12-23 03:04:30
问题 looking to set up user permissions in parse.com. i have a know list of users in my user "table". i want to lock down the app for supervisors(role) only view most tables and modify a few. have managers(role) to view almost all tables and modify most. Administrators to view and modify all. after searching for days i only see code to modify roles and permissions. what is the purpose using code if the roles and permissions are only setup once? or would someone please explain how to set up roles

How to reset ALAuthorizationStatusNotDetermined for photo permission on real device

隐身守侯 提交于 2019-12-23 02:44:27
问题 In detail, I am making a photo function for my app, it seems that when I permit the app to access the photo once, ALAuthorizationStatusNotDetermined will no longer appear again, even I have deleted the app. So is there any way that I can reset the app ALAuthorizationStatusNotDetermined again for debugging? 回答1: When developing on real device, reset privacy settings in Setting, General -> Reset -> Reset Location & Privacy Be aware that this will reset the settings for all applications at once.

not displaying images uploaded in ubuntu localhost because of www-data

感情迁移 提交于 2019-12-23 02:42:16
问题 I uploaded image into my test project(it is an online shop) and they are not be displayed where they should(the index.php page of my project) the directory is /var/www/html/php/ It has no problem with inserting the name of picture to database and the upload function work good and transfer images to the image directory of project well, but the only problem is that they are not displayed. I must say that i've tried lots of ways and i granted so many types of users and group permissions and even

SELinux permission denied to Phusion Passenger for redmine

*爱你&永不变心* 提交于 2019-12-23 02:01:53
问题 I am trying to install Redmine on CentOS 6.3 but I continue to get this error in the log file Passenger could not be initialized because of this error: Unable to start the Phusion Passenger watchdog (/usr/lib/ruby/gems/1.8/gems/passenger-4.0.20/buildout /agents/PassengerWatchdog): Permission denied (errno=13) I have been looking online and cannot find this error anywhere or any way to fix it. I have tried changing permissions to the folder to 777 and apache:apache but neither work. The only

“Cannot open log for source” - Windows 7 - .NET web service - event log

泪湿孤枕 提交于 2019-12-23 01:09:19
问题 I have a .NET web service that is trying to log to the Windows Event Log. However, when I try to send a SOAP request to a web method in this web service, I get back this error in the SOAP response: System.InvalidOperationException: Cannot open log for source 'MySource'. You may not have write access. ---> System.ComponentModel.Win32Exception: Access is denied I've tried Googling around for a solution. This one describes editing a registry key that does not exist for me in Windows 7 64-bit;

“Cannot open log for source” - Windows 7 - .NET web service - event log

☆樱花仙子☆ 提交于 2019-12-23 01:09:10
问题 I have a .NET web service that is trying to log to the Windows Event Log. However, when I try to send a SOAP request to a web method in this web service, I get back this error in the SOAP response: System.InvalidOperationException: Cannot open log for source 'MySource'. You may not have write access. ---> System.ComponentModel.Win32Exception: Access is denied I've tried Googling around for a solution. This one describes editing a registry key that does not exist for me in Windows 7 64-bit;

TFS 2010 permissions to folders and files

守給你的承諾、 提交于 2019-12-22 18:31:15
问题 Hear All, Could you help me solve following task. There is some folder in tfs source control. For instance, "Configs". There is standard "Contributors" user group. I want to allow make check-ins to some part of "Contributors" group. I'm tried to create new group "Leads", where I added people who can made check-ins. Than I deny check-ins to "contributors", and "allow" for "leads", by default "leads" allow do all. But after this people who in the both groups, can't do check-ins. Please advise

Can an app give its permission to another application in android?

让人想犯罪 __ 提交于 2019-12-22 18:03:10
问题 I have an application say A that have all the permissions enabled at installation. Another app Say B don't have a permission and want to get that permission. Can B communicate with A, So that A can transfer its permission to B. PLS reply, I'm stuck here. I want to get some permissions dynamically. Is this the best idea or any other idea? 回答1: As far as I know, apps can't necessarily give permissions to other apps, BUT AppB could inherit permissions from AppA IF you are the developer of both