permissions

Programmatically assigning IIS Application Pool Identity “users” to Groups

旧时模样 提交于 2019-12-22 05:45:09
问题 The Problem: When new IIS Application Pools are created and set to use the Application Pool Identity for permissions, I am unsure how to add those identities to User Groups such as Administrator or Performance Counter Users. The Background: I'm currently writing a C#.NET library which uses Microsoft.Web.Administration in order to do the following: Detect if IIS 7.x is installed, and if so, what components. Install or upgrade IIS 7.x to a provided list of required components. Create/manage one

Why does mode_t use 4 byte?

浪尽此生 提交于 2019-12-22 05:42:11
问题 I've just read about mode_t that it basically stores the following information: 7 boolean values for the file type (S_IFREG, S_IFDIR, S_IFCHR, S_ISBLK, S_ISFIFO, S_ISLINK, S_ISSOCK) 3*3 = 9 boolean values for the access permissons (read, write and execute for owner, group and others) So it needs 16 bit = 2 bytes. I guess you could even have one bit less for the file type, as it has to be either a regular file, a directory, a character or block device, a socket, a symbolic link, or a pipe. Or

onRequestPermissionsResult is not called back in an android activity

萝らか妹 提交于 2019-12-22 05:41:55
问题 I am trying to get the camera permission from the user before launching my camera activity. onRequestPermissionsResult is never called back after the user presses "Allow" from the permission dialog. Here is my Activity class: public class ImageCaptureActivity extends AppCompatActivity { public static final String TAG = ImageCaptureActivity.class.getSimpleName(); private static final int REQUEST_CAMERA = 0; private static final int REQUEST_CAMERA_PERMISSION = 1; private Point mSize; @Override

Why am I still getting “Access to the path 'C:\…\…' is denied” even after granting IIS_IUSRS write permission on the directory?

落爺英雄遲暮 提交于 2019-12-22 05:35:12
问题 I've written a method on my controller that auto generates a powerpoint deck for my client and all that works fine...except I'm stuck on the part about saving the file to disk. I'm no stranger to this concept; and "thought" that all I needed to do is grant IIS_IUSRS write permission on the directory and read permission on all parent directories. I'm using IIS 7, and I've done this before with IIS 6 granting NETWORK SERVICE the same permissions. Just for kicks, I even gave EVERYONE write

UIImagePickerController not asking for permissions on iOS 9

北城以北 提交于 2019-12-22 05:20:56
问题 I have an iOS app where I present an image picker the self.picker = [[UIImagePickerController alloc] init]; self.picker.delegate = self; self.picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary; self.popover = [[UIPopoverController alloc] initWithContentViewController:self.picker]; [self.popover presentPopoverFromRect:CGRectMake(100, 100, 1, 1) inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES]; The app however doesn't ask for permissions at all,

Problem requesting location updates by network

强颜欢笑 提交于 2019-12-22 04:50:11
问题 I've created a Service and grabs location data about the user so I can show my users nearby places. I want this Service to track by network in addition to GPS for 2 reasons: 1) GPS may not be enabled. 2) GPS takes quite a bit of time to lock on with my test phone. When my Service executes the following line: mNETEnabled = mLocationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER); I get the following error: 11-24 14:00:41.693: ERROR/LocationManagerService(51): isProviderEnabled got

Program can't load after setting the setuid bit on

谁说我不能喝 提交于 2019-12-22 04:48:11
问题 Consider this scenario in which an executable A.bin uses libY.so and libZ.so. A.c, Y.c and Z.c are all written in C. Z.c and Y.c are compiled into respective .so files. This is the directory structure of the files $home/bin/A.bin $home/lib/libY.so $home/lib/libZ.so When I run A.bin as normal user, A.bin runs normally as expected. Note: $LD_LIBRARY_PATH contains $home/lib I changed some code in A.c adding some functionality which needs admin privileges(like binding to a port less than 1000). I

Enable Web Speech API on Mozilla Firefox

自作多情 提交于 2019-12-22 04:46:25
问题 I've been working with the voice/speech synthesis on Chrome and then I realized Firefox doesn't allow it by default and special permissions must be granted. By reading this article I could make the test work: https://developer.mozilla.org/en-US/docs/Web/API/Web_Speech_API/Using_the_Web_Speech_API Firefox desktop and mobile support it in Gecko 44+, without prefixes, and it can be turned on by flipping the media.webspeech.recognition.enable flag to true in about:config. The permissions settings

What application trust level is need for ASP.NET MVC framework?

吃可爱长大的小学妹 提交于 2019-12-22 04:45:16
问题 i am trying to deploy simple asp.net mvc frameworkd application in may shared hosting and i get erro like this: Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file. Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security

Laravel 5 '..failed to open stream: Permission denied' exception when connecting to localhost [duplicate]

Deadly 提交于 2019-12-22 04:43:09
问题 This question already has answers here : Laravel 5 permission denied when writing in log file (4 answers) Closed 4 years ago . Have set up a project and when trying to connect to the local host I get this error in the console: [Wed Aug 12 21:26:46 2015] 127.0.0.1:50079 [500]: / - Uncaught exception 'UnexpectedValueException' with message 'The stream or file "/CT/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied' in /CT/vendor/monolog/monolog/src/Monolog