permission-denied

Git over samba - unable to write sha1 filename | Permission denied

﹥>﹥吖頭↗ 提交于 2019-11-30 00:30:45
When I am using git over samba share on windows I get an error when i want to commit a file via git_extentions or tortoiseGIT. The error is: error: unable to write sha1 filename .git/objects/b4/e819f886bf31b67c42249a0eff8e8b16cf7622: Permission denied . When I add the file via the ubuntu server and commit the file it works fine. I am also working in a banrch. I have already tryed chmod 777 the whole .git folder . I've seen this, too. It's a git defect, likely to do with how it creates and modifies files. To clarify the problem: # mount a samba share locally. $ mount -t cifs options //share

Node.js EACCES error when listening on http 80 port (permission denied) [duplicate]

随声附和 提交于 2019-11-29 20:44:05
This question already has an answer here: Best practices when running Node.js with port 80 (Ubuntu / Linode) [closed] 4 answers Node.js throws following error while running on http port 80 (default port):- Error: EACCES, Permission denied at Server._doListen (net.js:1062:5) at net.js:1033:14 at Object.lookup (dns.js:132:45) at Server.listen (net.js:1027:20) at [object Context]:1:3 at Interface.<anonymous> (repl.js:150:22) at Interface.emit (events.js:42:17) at Interface._onLine (readline.js:132:10) at Interface._line (readline.js:387:8) at Interface._ttyWrite (readline.js:564:14) I figured out

PHP exec Java cmd failed with permission denied

本小妞迷上赌 提交于 2019-11-29 12:12:57
I am currently writing some PHP scripts that need to invoke jar. I wrote a test script to test Java -version cmd. echo exec('whoami'); echo '<hr/>'; exec('java -version', $out); var_dump($out); The page return as below: apache array(6) { [0]=> string(134) "OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00007ff705000000, 2555904, 1) failed; error='Permission denied' (errno=13)" [1]=> string(1) "#" [2]=> string(76) "# There is insufficient memory for the Java Runtime Environment to continue." [3]=> string(100) "# Native memory allocation (malloc) failed to allocate 2555904 bytes for

Permission denied when writing into sdCard

天大地大妈咪最大 提交于 2019-11-29 10:06:29
I'm trying write a file into SDCard, but I am getting error in logcat: 01-24 09:03:33.647: W/System.err(3353): java.io.FileNotFoundException: /mnt/sdcard/fun/itisfun.txt: open failed: EACCES (Permission denied) 01-24 08:24:28.007: W/System.err(3353): Caused by: libcore.io.ErrnoException: open failed: EACCES (Permission denied) 01-24 09:03:33.756: W/System.err(3353):at libcore.io.Posix.open(Native Method) And here my code to write into SDCard: File root = null; try { // check for SDcard root = Environment.getExternalStorageDirectory(); Log.i(TAG,"path.." +root.getAbsolutePath()); //check sdcard

android createTempFile throws permission denied?

孤者浪人 提交于 2019-11-29 03:49:34
This is simple, but not working. I am trying to create a temp file (later a permanent storage file) for preview of an MP3 file. I have tried the following variants of the suffix as following example: public class StudyFileIo extends Activity { private static final String TAG = "StudyFileIo"; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); try { File tempFooFile = File .createTempFile("foo", "dat"); Log.i(TAG, tempFooFile.getAbsolutePath()); } catch (IOException e) { Log.e(TAG, e.toString()); e.printStackTrace(); } }

Troubles installing programmatically an app with INSTALL_PACKAGES permission from /system/app

故事扮演 提交于 2019-11-29 03:42:50
I'm trying to install programmatically an app without user interaction and i'm getting this error SecurityException: Neither user 10057 nor current process has android.permission.INSTALL_PACKAGES My installer is located in /system/app on rooted phone, "Install non market apps" is checked , the installer has permission <uses-permission android:name="android.permission.INSTALL_PACKAGES"/> This is my call function private void puk(Context context) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException{ String fileName = PAKAGE_FILE_NAME ; String dir_type = Environment

What permissions are required for “Run Script” during a build phase?

好久不见. 提交于 2019-11-29 02:26:14
问题 In the "Run Script" build phase of my project, everything works if I type in the script into the text box for "run script" in build phases. But to make editing / diffing etc easier, I thought I would save the script as a file as part of my project, and just fill in the path in the text box instead: Eg: I paste the following path in the text box. /Users/superman/Documents/Projects/SomeProject/scriptname.sh But when I try to build this, I get a "Permission Denied" message. What can I do to fix

Node.js EACCES error when listening on http 80 port (permission denied) [duplicate]

自闭症网瘾萝莉.ら 提交于 2019-11-28 16:50:57
问题 This question already has an answer here: Best practices when running Node.js with port 80 (Ubuntu / Linode) [closed] 4 answers Node.js throws following error while running on http port 80 (default port):- Error: EACCES, Permission denied at Server._doListen (net.js:1062:5) at net.js:1033:14 at Object.lookup (dns.js:132:45) at Server.listen (net.js:1027:20) at [object Context]:1:3 at Interface.<anonymous> (repl.js:150:22) at Interface.emit (events.js:42:17) at Interface._onLine (readline.js

permission error while making ugc video post on linkedin

懵懂的女人 提交于 2019-11-28 10:03:15
I am trying to create video post on linkedin with new ugc endpoint there are two steps to create this type of post 1). Upload video asset on linkedin server (done) 2). make post request to ugc endpoint with request body I have successfully uploaded the video but getting authentication error for ugc post request. error is { "message": "urn:li:developerApplication:<id1> does not have permission to create ugc posts with author: li:member:<id2>", "status": 401 } I am passing the request body as suggested in the linkedin api docs. { "author": "urn:li:person:<id>", "lifecycleState": "PUBLISHED",

PHP fopen() Error: failed to open stream: Permission denied

吃可爱长大的小学妹 提交于 2019-11-28 09:46:22
I learning how to write a WordPress plugin. I need some help writing some data to an XML file. I'm on my local machine, a Mac running MAMP. I have PHP 5.2.13. In my plugin, I've got: $file_handle = fopen('markers.xml', 'w'); $stringdata = "Test Info"; fwrite($file_handle, $stringdata); fclose($file_handle); Running the above gives me the following error: Warning: fopen(markers.xml) [function.fopen]: failed to open stream: Permission denied in /Users/my_name/Sites/my_site/wp-content/plugins/my_plugin_folder/my_plugin_main_file.php on line 73 Warning: fwrite(): supplied argument is not a valid