permissions

How to remember camera/mic permissions on Chrome for Android?

你说的曾经没有我的故事 提交于 2019-12-24 01:47:27
问题 I'm writing a WebRTC app that is designed to be used from an Android tablet. When you access the app, Chrome prompts you to Allow or Deny access to the camera/microphone. According to this page (https://support.google.com/chrome/answer/2693767?hl=en), if you host your app behind HTTPS, then browsers will remember the setting you chose. This works correctly in Chrome on the desktop (Mac, Linux) but when I visit the same site in Chrome Beta for Android (v29), it prompts me to Allow/Deny each

ASP.NET MVC3 Copy file to Shared Mapped Drive - Access to the path is denied

情到浓时终转凉″ 提交于 2019-12-24 01:45:05
问题 Currently I am getting this error when trying to copy a local file over to a shared network drive. Access to the path '\\vlanxxxx\Vlanxxx\VT\12345.pdf' is denied' Background Information Running ASP.NET MVC3, Windows Server 2008 R2 In IIS->Application Pools my Application has the correct permission to access the shared drive I have tried copying the file from a local folder to local folder and it worked successfully. i.e C:\log\12345.pdf -> C:\test\12345.pdf Purpose: My overall purpose is to

Error in rails “Permission denied - /tmp/cache/assets/development/sprockets/…”?

末鹿安然 提交于 2019-12-24 01:19:01
问题 When I run a rails app and navigate with browser to them I get an error from rails : Permission denied - /path/to/my_rails_app/tmp/cache/assets/development/sprockets/37b5a12047376b10a57191a10d3af30a rails error And I have no such file/folders behind the ./tmp/ . What is the problem? 回答1: The user who created or 'owns" the my_rails_app directory isn't writable by the server. chown -R webserveruser:webserveruser /path/to/my_rails_app Change the webserveruser to http, or apache or whatever

Cygwin Openssh can't see /etc/sshd_config

霸气de小男生 提交于 2019-12-24 00:58:20
问题 I can't get the openssh server to work on Windows Server 2008. I have it working on two other servers, but one of them just won't work. I run ssh-host-config , and choose privilege separation. Two users are created sshd and sshd_server . Then I run net start sshd , and I see this: The CYGWIN sshd service is starting. The CYGWIN sshd service could not be started. The service did not report an error. Then I run cat /var/log/sshd.log and I see this output: /etc/sshd_config: No such file or

grant/revoke permission with adb

橙三吉。 提交于 2019-12-24 00:55:56
问题 The Android documentation contains the following description of the adb grant and adb revoke commands. Use the adb tool to manage permissions from the command line: List permissions and status by group: $ adb shell pm list permissions -d -g Grant or revoke one or more permissions: $ adb shell pm [grant|revoke] <permission-name> ... Analyze your app for services that use permissions. i run this command, without any error message: abd shell pm [grant|revoke] com.my.app android.permission.ACCESS

Restrict a directory that can be used only through a .net Application

末鹿安然 提交于 2019-12-24 00:47:14
问题 I have a windows Application that stores certain files in a directory. I would like to know if there is a way in .net that I can restrict users not to have access to that directly (by just going to that directory in windows, and grab files) so only my application can add/verify/delete a file in that directory. 回答1: Could you use the Isolated Storage in .Net? While, it isn't necessarily restricted away from your users it may be a lot harder to find.... (stores under the local settings

How to make permissions to a user on all new tables in Postgres?

好久不见. 提交于 2019-12-24 00:45:01
问题 Supposing, I have two users in Postgres 9.6 named user1 and user2 . I want to make permissions to user2 on any new table created by user1 without extra explicit grant commands for the created table. In other words, I want to make the following commands work correctly: Giving permissions to user2 ( I don't know what should be here! ) CREATE TABLE t1 (id int) (under user1 ) INSERT INTO t1 VALUES (5) (under user2 ) Please, notice, I am not supposed to make any permissions between step 2 and 3.

Exported Activity Permission for AppWidget Configuration Activity

北战南征 提交于 2019-12-24 00:32:39
问题 I'm getting this warning for my AppWidget's configuration activity in the manifest file after I added the android:exported="true" tag. This is what it looks like... <activity android:name=".widgets.WidgetConfigurationActivity" android:theme="@android:style/Theme.Translucent" android:exported="true" > <intent-filter> <action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" /> </intent-filter> </activity> The warning I'm getting is "Exported activity does not require permission".

Symfony 2 - Checking Action Permission with Roles and Groups

喜欢而已 提交于 2019-12-24 00:25:12
问题 I'm new into Symfony 2 and I read some docs about ACL and the ROLE System. I understood that I can use different Permissions on a Object with ACL. But I need some different ( ? ) type of permission check, like in the static apache turbine roles / permission sets. I want to use FOSUserBundle and using Groups. The Groups should have permissions like DOWNLOAD_PDF DOWNLOAD_PPT INVITE_USERS and so on.. Stuff that does not have something to do with Objects but I have to check in Controller ( static

Apache2 permission problem

元气小坏坏 提交于 2019-12-23 23:46:13
问题 I initially asked a question about how to create linux users via HTML (essentially the user registers via an HTML page which executes a server side PHP script which more or less issues the command shell_execute("adduser user") . But, since then, I have come to realize that the problem has to do with the Apache user. The default apache user is www-data. This works fine most of the time, as you can assign files or folders to either the www-data user, or the www-data group. However, it