permissions

Proper owner of var/www/html

坚强是说给别人听的谎言 提交于 2020-01-20 02:01:25
问题 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

How can I find files that only have certain permission for owner?

江枫思渺然 提交于 2020-01-19 23:54:41
问题 I would like to find files only by a certain user's permission. For example, if I want to find a file that I have full permission. I may do something like: find . -user $(whoami) -perm But what should I put after -perm if I want to ignore the permission of root and other users. 回答1: Start with: find /path/to/file -user user1 -perm -u+rwx This means: look for files starting in /path/to/files , owned by user1 , where the permissions for group and other can be anything (- in front of permission

Permission Denial: opening provider com.android.providers.contacts.ContactsProvider2 from ProcessRecord in Android Studio

为君一笑 提交于 2020-01-19 07:10:46
问题 I am getting this error when I am trying to read contacts from phone and I included READ_CONTACTS permission in Manifest file. And the strange thing is that it was working fine in Eclipse but when I converted my project to Gradle and run it in Android Studio I'm getting this error. logcat says: Permission Denial: opening provider com.android.providers.contacts.ContactsProvider2 from ProcessRecord{302f069 29282:com.GP/u0a322} (pid=29282, uid=10322) requires android.permission.READ_CONTACTS or

Permission Denial: opening provider com.android.providers.contacts.ContactsProvider2 from ProcessRecord in Android Studio

半城伤御伤魂 提交于 2020-01-19 07:09:41
问题 I am getting this error when I am trying to read contacts from phone and I included READ_CONTACTS permission in Manifest file. And the strange thing is that it was working fine in Eclipse but when I converted my project to Gradle and run it in Android Studio I'm getting this error. logcat says: Permission Denial: opening provider com.android.providers.contacts.ContactsProvider2 from ProcessRecord{302f069 29282:com.GP/u0a322} (pid=29282, uid=10322) requires android.permission.READ_CONTACTS or

Storage permission issue for my wallpaper app in android marshmallow

被刻印的时光 ゝ 提交于 2020-01-17 07:17:32
问题 Even after adding storage permission to my app I am unable to set wallpaper or download wallpaper (one function of my app) Its like wallpaper setting app. and unable to share the wallpaper. Here is my piece of code which I did. Please have a look on my code and tell me what's wrong with it. If there is any solution plz explain me clearly step-by-step (I am New to android) AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res

Browse cube - Change User: The following system error occurred: The user name or password is incorrect

五迷三道 提交于 2020-01-17 06:36:31
问题 I'm trying to browse SSAS cube using different user and I get "the user name or password is incorrect". I gave the user Admin rights on the cube, admin rights on the SSAS server and these were not helped. the only users who can browse the cube are domain admins. By the way, browsing the cube directly without changing the user works well. What is the problem? what should I change? 回答1: You are logged into a laptop or server as DOMAIN\user1 then you try to switch to DOMAIN\user2. Make sure

Runtime.exec() from tomcat6 succeeds, but cannot access any files

女生的网名这么多〃 提交于 2020-01-17 03:04:28
问题 I'm moving our servlets (pure Java, running in Tomcat 6) from CentOS to Debian, and faced the problem with executing commands with Runtime.exec() . (The command should be ImageMagick's convert in production, but I have simplified the calls to find the source of problems, so all the following code with echo is tested and not working as well). String command = "echo test123 > /tmp/tomcat6-tmp/1"; Runtime runtime = Runtime.getRuntime(); Process process = runtime.exec(command); int exitVal =

Extracted Files are always read-only

巧了我就是萌 提交于 2020-01-16 18:20:23
问题 I'm extracting an ISO and then copying a folder from the extracted ISO. The problem is that the extracted files are read-only. I've tried changing it from the properties menu, and from code in c#. Neither worked. The code I used for extracting the ISO is in another question: extract ISO with winrar automatically with c# or batch I'm looking for a way to either change the attributes of the extracted ISO so that I can copy from its subfolders, or to just change the sub folders permissons.

How to retain folder permission during website deployment?

南笙酒味 提交于 2020-01-16 18:20:12
问题 I have a production website that, once built in TFS is re-deployed and updated using xcopy. The entire site (excluding the root directory) it deleted then the new site copied in. This works well. We use a 3rd party charting package that creates images at runtime and then renders a link to them. In order to do this it needs write permissions to a browsable folder. Unfortunately, every time we update the website the write permissions of IIS_USRS is lost. Is there any way to retain this? 回答1: I

Android Capturing an image From Camera Returns Empty Data [duplicate]

风流意气都作罢 提交于 2020-01-16 18:07:17
问题 This question already has answers here : Android Camera : data intent returns null (11 answers) Closed 2 years ago . While Capturing image in android app intent return null each time. Please see below the code which I am using. I have tried multiple ways to get the permission as well as intent set but still I am unable to get data. Action For Camera private void takePhotoFromCamera() { if(ActivityCompat.checkSelfPermission(ObservationsView.this, Manifest.permission.CAMERA) == PackageManager