permissions

Permission Denial: Accessing service ComponentInfo {…} from pid=-1

僤鯓⒐⒋嵵緔 提交于 2020-01-23 04:53:18
问题 I'm attempting to use Google's Activity Recognition Service. Several days ago everything worked like a charm, i.e. I could connect use the service to obtain activity information. But today I found that I couldn't receive any anymore. After looking at the log I found this error: 05-15 21:19:27.196: W/ActivityManager(765): Permission Denial: Accessing service ComponentInfo{edu.umich.si.inteco.captureprobe/edu.umich.si.inteco.captureprobe. contextmanager.ActivityRecognitionService} from pid=-1,

Is there a way to trigger the .always coreLocation permission proactively in iOS13?

倾然丶 夕夏残阳落幕 提交于 2020-01-22 09:58:12
问题 Under iOS13, when you request the .always permission for coreLocation (to enable background location e.g. for geofences or iBeacons), the app is only granted a "provisional always" permission, which does not allow it to use coreLocation in the background. At a later stage, in principle the OS should popup a permission request to switch to the .always permission. I have yet to experience it, and it seems (looking at Apple developer forums) that nobody have found a way to consistently trigger

Permissions required to create/modify tasks in Windows Task Scheduler

南笙酒味 提交于 2020-01-21 08:48:29
问题 I need to create and modify tasks in Windows Task Scheduler on Windows Server 2003 from an ASP.NET web application. The Network Service that the web app runs under is unable to make the changes. It errors with an System.UnauthorizedAccessException exception. It works fine running from Visual Studio on my desktop. What permissions do I need to grant an account so that the tasks can be modified from ASP.NET? 回答1: The account needs to have read/write permissions to the "Tasks" directory. Here's

Permission Denied error with Django while uploading a file

限于喜欢 提交于 2020-01-20 13:39:38
问题 I currently have a simple model defined, with a photoupload feature using django thumbnails plugin. but when i try to upload it gives me the following error: OSError at /admin/products/photo/add/ (13, 'Permission denied') Now, i know this is seems to be a permission issue, so the first thing i checked were permissions on the directory and changed these to 777 (Just to Test), restarted the server and fcgi and it still gives the error. Traceback Traceback: File "/usr/lib/python2.6/dist-packages

Permission Denied error with Django while uploading a file

心不动则不痛 提交于 2020-01-20 13:36:06
问题 I currently have a simple model defined, with a photoupload feature using django thumbnails plugin. but when i try to upload it gives me the following error: OSError at /admin/products/photo/add/ (13, 'Permission denied') Now, i know this is seems to be a permission issue, so the first thing i checked were permissions on the directory and changed these to 777 (Just to Test), restarted the server and fcgi and it still gives the error. Traceback Traceback: File "/usr/lib/python2.6/dist-packages

Permission Denied error with Django while uploading a file

旧街凉风 提交于 2020-01-20 13:36:05
问题 I currently have a simple model defined, with a photoupload feature using django thumbnails plugin. but when i try to upload it gives me the following error: OSError at /admin/products/photo/add/ (13, 'Permission denied') Now, i know this is seems to be a permission issue, so the first thing i checked were permissions on the directory and changed these to 777 (Just to Test), restarted the server and fcgi and it still gives the error. Traceback Traceback: File "/usr/lib/python2.6/dist-packages

What file and directory permissions are required for MySQL LOAD DATA INFILE?

空扰寡人 提交于 2020-01-20 04:11:05
问题 I have a script that is trying to load some data into MySQL with LOAD DATA INFILE . For some reason, it works if the file is in the /tmp directory, but not if the file is in another directory with identical permissions. I can't find any way to get MySQL to import data from outside the /tmp directory, or the database directory, but I can't find anything in the manual that explains why this would be the case. The situation: $ ls -l / ... drwxrwxrwt 21 root root 4096 2010-10-19 20:02 tmp

Setting umask in Git / Gitolite

谁都会走 提交于 2020-01-20 02:19:46
问题 I have set up Git and Gitolite, and at some point I recall having seen an "umask" setting, in one of the configuration files. Does this set the permissions for all files I sync using Git? That is exactly what I need. Where can I find it? 回答1: The umask settings in Gitolite are there for changing the umask for newly created repos (and not about the files managed in versions by those repos). See gitolite.rc doc: $REPO_UMASK , octal, default 0077 The default UMASK that gitolite uses makes all

Setting umask in Git / Gitolite

这一生的挚爱 提交于 2020-01-20 02:19:28
问题 I have set up Git and Gitolite, and at some point I recall having seen an "umask" setting, in one of the configuration files. Does this set the permissions for all files I sync using Git? That is exactly what I need. Where can I find it? 回答1: The umask settings in Gitolite are there for changing the umask for newly created repos (and not about the files managed in versions by those repos). See gitolite.rc doc: $REPO_UMASK , octal, default 0077 The default UMASK that gitolite uses makes all

Proper owner of var/www/html

若如初见. 提交于 2020-01-20 02:01:46
问题 I am running apache2 in Ubuntu 14.04. I have been having trouble with permissions with FTP clients and CMS that use backend FTP. I never seem to be able to get the permissions right. Should www-data be the owner of /var/www/html and root as a user assigned to that group? 回答1: Some CMSes and Wordpress is especially bad about that because it's actually in the code to use the web user. BTW you should never need to use root for ftp. www-data the default apache user on ubuntu should own your web