permissions

Android google calendar permission issue

99封情书 提交于 2019-12-08 09:07:12
问题 I am using google-api-client to access Google calendar. Following are the permissions in my manifest file. <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.GET_ACCOUNTS" /> <uses-permission android:name="android.permission.USE_CREDENTIALS" /> <uses-permission android:name="android.permission.MANAGE_ACCOUNTS" /> but I am getting such a warning message on the first run: The following one or more applications request permission to

Errno::EACCES in Controller#upload rails roo carrierwave on ubuntu

荒凉一梦 提交于 2019-12-08 08:37:22
问题 I am using roo to parse some excelx files on my rails app on ubuntu. These are uploaded with Carrierwave. Here are my actual controller lines: excelx_file = params[:excel_file] filex = MetadataUploader.new filex.store!(excelx_file) workbook = Excelx.new("#{filex.store_path}") Here are the permissions on public/uploads: drwxrwxr-x 2 pirames pirames 4096 Jun 13 14:03 metadata_ingestion drwxrwxr-x 2 pirames pirames 4096 Jun 13 14:24 tmp Here are the permission on the file: ls -l public/uploads

FB sdk, requestNewPublishPermissions() doesn't call any callback

廉价感情. 提交于 2019-12-08 08:32:16
问题 I followed the FB tutorial step by step, and I can't figure out why is this not working. All my fragments inherits from the BaseFragment : public class BaseFragment extends SherlockFragment { ... protected UiLifecycleHelper _uiHelper; protected boolean _isResumed = false; protected static final List<String> PERMISSIONS = Arrays.asList("publish_actions"); protected static final String PENDING_PUBLISH_KEY = "pendingPublishReauthorization"; protected boolean _pendingPublishReauthorization =

sed script - permission denied on temp file

*爱你&永不变心* 提交于 2019-12-08 07:32:35
问题 I just used a combination of find and sed to replace strings in files of a directory. find . -type f -exec sed -i 's,foo,bar,g' {} + It got the job done. After that I logged off the server (connected via SSH), and then remembered, that I need to run the command again. So I fired the same command with slightly modified find/replace strings, but it did not work anymore giving the following error: sed: couldn't open temporary file ./sedPFq4Ck: Permission denied What is wrong now? FWIW: the file

Can not save camera's captured photo in application's “files” folder

拥有回忆 提交于 2019-12-08 07:14:40
问题 I create a folder called "myImage" in my application's Internal Storage "files" folder. When i take a photo with the camera i want the photo to be saved in "files/myImage" folder. It seems that the camera has not the permsission to write in that folder because the folder remains empty. On the other hand, when i create "myImage" folder in the external storage, the photo is saved normally. Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); UUID myPhotoGuid = UUID.randomUUID();

Selective access to Git repository based on SSH

大憨熊 提交于 2019-12-08 07:08:40
问题 I have a server with six Git repositories, to which I have read+write access through a single SSH account, all in /opt/git/, all owned by the SSH account. I'd like to give somebody else read+write access the a few of the repositories, but not to all. How do I create a new SSH user that has access to only a few select repositories? Can I use filepermissions (currently 0755) to control this type of access? Are there any best practices? It's unlikely we'll have a third developer for quite a

Set permissions for directory and child items

纵然是瞬间 提交于 2019-12-08 06:37:31
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 = local_commonDir.GetAccessControl(AccessControlSections.Access); FileSystemAccessRule rule = new

brew - permission denied

折月煮酒 提交于 2019-12-08 06:35:53
问题 My system is OSX 10.11.6. I'm running into this error: System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/specification.rb:959:in `read': Permission denied - /Library/Ruby/Gems/2.0.0/specifications/terminal-notifier-1.6.0.gemspec (Errno::EACCES) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/specification.rb:959:in `load' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/specification

From local server to live web server, links not working [Magento]

血红的双手。 提交于 2019-12-08 06:17:25
I've followed this steps to upload my local magento install my live web server. Now, the homepage is working fine but every link on it directs you to a 404 not found error. Can't even access "/admin". I assume this is a problem with the base URL but I've double checked on the database and they're correctly set at "path: web/unsecure/base_url" "value: http://www.mysite.com/ " Anyone got any idea why this is happening? have you copied the .htaccess file to your server where the rewrite rules are? If .htaccess and mod_rewrite rules are disabled then you can access your admin page via index.php

SELinux Enforcing not honouring httpd_enable_homedirs -> off

ε祈祈猫儿з 提交于 2019-12-08 06:15:38
问题 Why am I able to access http://localhost/~myusername in Fedora20 with SELinux set to Enforcing , if the httpd_enable_homedirs boolean is set to off ? The following is a direct excerpt from the fedoraproject's wiki on SELinux about the httpd_enable_homedirs boolean: httpd by default is not allowed to access users home directories. If you want to allow access to users home directories you need to set the httpd_enable_homedirs boolean and change the context of the files that you want people to