file-permissions

gpg: WARNING: unsafe ownership on configuration file, $gpg --fingerprint on Ubuntu9.10

戏子无情 提交于 2019-11-28 19:11:11
I'm getting this error when I run this code. gpg --fingerprint gpg: WARNING: unsafe ownership on configuration file `/home/dylan/.gnupg/gpg.conf The problem seems to be with permissions, but I have tried this code, and it has not seemed to change a thing. Checking through nautilus, I own the file and have read/write priv., and all others set to 'none'. sudo chmod 600 ~/.gnupg/gpg.conf dylan@Majuscule:~$ sudo chown -R dylan ~dylan/.gnupg [sudo] password for dylan: dylan@Majuscule:~$ chmod 600 ~/.gnupg/gpg.conf dylan@Majuscule:~$ chmod 700 ~/.gnupg dylan@Majuscule:~$ gpg --fingerprint dylan

How to use group file permissions correctly on a git repository?

随声附和 提交于 2019-11-28 18:41:52
We're accessing a shared git repository via file paths, for various reasons I'll omit for now, created with --shared=group. We have various unix groups but all share a common group. If I run a chgrp -R on the git repository everyone can read from it, but if someone writes to it more often than not new files are created which do not use the common group. This problem appears to be because our primary group is not the shared one and if we run a newgrp all seems to work well. There are issues with this approach though; newgrp is slow and it spawns a new shell, which makes me think calling it in a

File exists and IS directory, but listFiles() returns null

只谈情不闲聊 提交于 2019-11-28 18:31:30
The documentation for File.listFiles() suggests that null will ONLY be returned in the case that the file calling it is not a directory. I have the following: String dir = "/storage/emulated/0"; File f = new File(dir); Log.v("Files",f.exists()+""); Log.v("Files",f.isDirectory()+""); Log.v("Files",f.listFiles()+""); The log reads: true true null For some reason, listFiles( ) is returning null even though the File is recognized as a valid directory. I'm not super familiar with Android file hierarchy behavior, so I would guess the problem lies in there. For reference, I'm debugging on my Moto X,

myProject is locked for editing and you may not be able to save your changes?

本秂侑毒 提交于 2019-11-28 18:10:22
I get the following error messages when I moved my code from my laptop to my Mac Mini and opened it over there: myProject is locked for editing and you may not be able to save your changes? myProject is currently locked because you are not the owner of the file and do not have write permission. The file "xxx.xcuserdatad" could not be unlocked. Could not add write permission to the file because you do not own it. Try modifying the permission of the file in the Finder or Terminal. I did a search with Finder: What came up was a file called UserInterfaceState.xcuserstate inside of xxx.xcuserdatad.

Requesting and allowing WRITE_EXTERNAL_STORAGE permission at runtime has no effects on the current session

做~自己de王妃 提交于 2019-11-28 17:16:10
this is regarding the new model of runtime permissions introduced in Android Marshmallow when requesting Manifest.permission.WRITE_EXTERNAL_STORAGE permission. In short, what I am experiencing is that if I request (and the user allows) Manifest.permission.WRITE_EXTERNAL_STORAGE permission, the app won't be able to read and write from the external storage directory until I destroy and restart the app . This is what I am doing/experiencing: My app starts from a state where: ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED

Add writing permission to PHP on IIS 7

落爺英雄遲暮 提交于 2019-11-28 16:51:09
I need a PHP script to have writing permission in a directory. PHP 5.3 is running as FastCGI under IIS 7 with windows server 2008 as OP. On my php error logs, I got "permission denied" when the script attempts to write a file. How can I sort this out? I tried to give all right to IIS_IUSR and to IUSR_myservername (with a right click on my folder) but it didn't work. Any help would be very appreciate, Regards, Julien tomfumb I have the same setup and I have to give write permission to: IUSR IIS AppPool\<<AppPoolName>> Actually, it's a little bit more complicated. The first thing to do is to

Open a file with su/sudo inside Emacs

十年热恋 提交于 2019-11-28 14:58:45
Suppose I want to open a file in an existing Emacs session using su or sudo , without dropping down to a shell and doing sudoedit or sudo emacs . One way to do this is C-x C-f /sudo::/path/to/file but this requires an expensive round-trip through SSH . Is there a more direct way? [EDIT] @JBB is right. I want to be able to invoke su / sudo to save as well as open. It would be OK (but not ideal) to re-authorize when saving. What I'm looking for is variations of find-file and save-buffer that can be "piped" through su / sudo . The nice thing about Tramp is that you only pay for that round-trip to

need to access the system permission

岁酱吖の 提交于 2019-11-28 14:51:59
I am trying to access the folder of my app from data/data but it need to change the permission to 0777 . So, I had used some code that can change at run time but the permissions are not changing. It gives me error open failed: EACCES (Permission denied) . I also put this permission in manifest file below Marshmallow i need to give like in root explorer where we change the folder rwxrwxrw <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> Here this is my code String[] command = new String[]{"/system/bin/ls", "0777", "/data/data/com.ayub.android.baba" }; process =

OSError: [Error 1] Operation not permitted

时光怂恿深爱的人放手 提交于 2019-11-28 13:43:59
I am trying to run a python script which uses a binary file (xFiles.bin.addr_patched) created by a postlinker. However, I am getting this error. File "abc.py", line 74, in ParseCmd shutil.copy(gOptions.inputX, gWorkingXFile) File "/usr/lib/python2.6/shutil.py", line 89, in copy copymode(src, dst) File "/usr/lib/python2.6/shutil.py", line 66, in copymode os.chmod(dst, mode) OSError: [Errno 1] Operation not permitted: 'myPath/xFiles.bin.addr_patched' When I checked the permissions of this xFiles.bin, by ls-l, it shows that -rwxrwxrwx 1 nobody nogroup I presume the error is because this file was

why my file permission being changed after pull from git repository

余生颓废 提交于 2019-11-28 10:33:58
I have been came across this problem over and over again. I have a git repository set up on my remote server and all the files are set to 644 and folders are set to 755. However, every time after i pulling from git repository(i'm using bitbucket), i noticed the permission of the file which i modified was changed into 664 which results a Internal server Error. For example, I changed the index.php, and it occurs 500 when i tried to get access to it i have to use find . -type d -print0 | xargs -0 chmod 0755 and find . -type f -print0 | xargs -0 chmod 0644 to manually changed my files permission