user-permissions

Android M User Permission Error - READ and WRITE

為{幸葍}努か 提交于 2019-11-28 10:58:56
I just started off with android M and I am unable to access the external storage. I get the following error Caused by: java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media from pid=15355, uid=10053 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission() I am adding user-permission in manifest like <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> and my build file is with following settings : compileSdkVersion 23 buildToolsVersion "22.0.1" minSdkVersion 16

Is there a way of detecting whether a user has already given permission to use navigator.geolocation?

£可爱£侵袭症+ 提交于 2019-11-28 09:06:13
Apart from setting a cookie the first time round, is there a way of detecting whether a user has already given permission for navigator.geolocation to return the lat/long of the browser? If there is, what is it and is it the same across all browsers or different across all browsers? This subject has been partially answered elsewhere According to GeoLocation API – Chrome / Safari – Permission management and Visual Differences , Chrome asks for a revokable one-time permission. I haven't finished reading the article, but it would seem that storage of permissions is not a purely-Chrome thing to do

I need an Amazon S3 user with full access to a single bucket

半城伤御伤魂 提交于 2019-11-28 06:16:57
I have a user foo with the following privileges (it's not a member of any group): { "Statement": [ { "Sid": "Stmt1308813201865", "Action": "s3:*", "Effect": "Allow", "Resource": "arn:aws:s3:::bar" } ] } That user however seem unable to upload or do much of anything until I grant full access to authenticated users (which might apply to anyone). This still doesn't let the user change permission as boto is throwing an error after an upload when it tries to do do key.set_acl('public-read') . Ideally this user would have full access to the bar bucket and nothing else, what am I doing wrong?

HDFS Home Directory

♀尐吖头ヾ 提交于 2019-11-27 19:25:22
问题 I have setup a single node multi-user hadoop cluster. In my cluster, there is an admin user that is responsible for running the cluster (superuser). All other users are allocated a hdfs directory like /home/xyz where xyz is a username. In unix, we can change the default home directory for a user in /etc/passwd. And by default, landing directory for a user is the home directory. How do I do it in hadoop for hdfs file system. I want for example, if user types: $hadoop dfs -ls on the unix prompt

postgresql database owner can't access database - “No relations found.”

孤人 提交于 2019-11-27 18:33:56
I've got an user: user_x that owns a database on postgresql and does not have any ROLE attribute like (CREATE_DB, SUPERUSER,...) This user_x can access the whole DB, create tables (on his database), select, insert and update data. I've got this list of databases: mydatabase=> \l List of databases Name | Owner | Encoding | Collation | Ctype | Access privileges -------------------------+----------+-----------+-----------+-------+----------------------- postgres | postgres | SQL_ASCII | C | C | mydatabase | user_x | UTF8 | C | C | template0 | postgres | SQL_ASCII | C | C | =c/postgres + | | | | |

Android M User Permission Error - READ and WRITE

六眼飞鱼酱① 提交于 2019-11-27 05:54:28
问题 I just started off with android M and I am unable to access the external storage. I get the following error Caused by: java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media from pid=15355, uid=10053 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission() I am adding user-permission in manifest like <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> and my build

Is there a way of detecting whether a user has already given permission to use navigator.geolocation?

不羁的心 提交于 2019-11-27 02:16:15
问题 Apart from setting a cookie the first time round, is there a way of detecting whether a user has already given permission for navigator.geolocation to return the lat/long of the browser? If there is, what is it and is it the same across all browsers or different across all browsers? This subject has been partially answered elsewhere According to GeoLocation API – Chrome / Safari – Permission management and Visual Differences, Chrome asks for a revokable one-time permission. I haven't finished

I need an Amazon S3 user with full access to a single bucket

Deadly 提交于 2019-11-27 01:15:26
问题 I have a user foo with the following privileges (it's not a member of any group): { "Statement": [ { "Sid": "Stmt1308813201865", "Action": "s3:*", "Effect": "Allow", "Resource": "arn:aws:s3:::bar" } ] } That user however seem unable to upload or do much of anything until I grant full access to authenticated users (which might apply to anyone). This still doesn't let the user change permission as boto is throwing an error after an upload when it tries to do do key.set_acl('public-read') .

MySQL grant all privileges to database except one table

自闭症网瘾萝莉.ら 提交于 2019-11-26 20:26:58
I've been unable to find a reasonable solution to achieve the following: I wish to have a user that has ALL privileges on a database (or series of databases with the same schema), except for one table, to which they will only have SELECT privileges. Essentially I want the user to have free reign over a database but not to be able to update a specific table. So far I have tried, to no avail: Granting all privileges on that database (db_name.*) and then specifically granting only select privileges on that desired table (hoping it would overwrite the "all", stupid I know). Granting all privileges

How do I use su to execute the rest of the bash script as that user?

北城以北 提交于 2019-11-26 19:25:32
I've written a script that takes, as an argument, a string that is a concatenation of a username and a project. The script is supposed to switch (su) to the username, cd to a specific directory based upon the project string. I basically want to do: su $USERNAME; cd /home/$USERNAME/$PROJECT; svn update; The problem is that once I do an su... it just waits there. Which makes sense since the flow of execution has passed to switching to the user. Once I exit, then the rest of the things execute but it doesn't work as desired. I prepended su to the svn command but the command failed (i.e. it didn't