permission-denied

Permission denied creating a Maven Enterprise Application on Netbeans on Linux

穿精又带淫゛_ 提交于 2019-12-11 06:22:56
问题 I am using Netbeans 8.0 and Maven 3.2.2 on Linux Mint 16 and I am trying to create a new Maven Enterprise Project. However, I get the following error when doing it: Command: cd /path/to/new/project; JAVA_HOME=/usr/java/jdk1.7.0_45/jre M2_HOME=/path/to/apache-maven-3.2.2 /path/to/apache-maven-3.2.2/bin/mvn -DarchetypeGroupId=org.codehaus.mojo.archetypes -DarchetypeArtifactId=ejb-javaee7 -DarchetypeVersion=1.1 -DarchetypeRepository=http://repo.maven.apache.org/maven2 -DgroupId=com.mycompany

Android - Delete SMS completely from the device and make SMS non recoverable

梦想的初衷 提交于 2019-12-11 04:38:01
问题 I want to delete all the sms from the mobile through my application. Currently, I am deleting messages using below code. Uri uriSms = Uri.parse("content://sms/"); Cursor c = getContentResolver().query(uriSms, new String[] { "_id", "thread_id", "address","person", "date", "body" }, null, null, null); if (c != null && c.moveToFirst()) { do { long id = c.getLong(0); getContentResolver().delete(Uri.parse("content://sms/" + id), null, null); } while (c.moveToNext()); } I am able to delete messages

How do you give WWW::Mechanize::Firefox permission to launch Firefox?

别等时光非礼了梦想. 提交于 2019-12-11 03:53:58
问题 I'm on a Mac. I've got a simple Perl script that uses WWW::Mechanize::Firefox to pull up a web page. The script works perfectly when Firefox is already open and running on my computer. Here's the line the creates the object: my $mech = WWW::Mechanize::Firefox->new( launch => '/Applications/Firefox.app' ); However, when Firefox is shutdown and I run the script, I get the following error: exec failed: Permission denied at /Library/Perl/5.12/MozRepl/RemoteObject.pm line 463 at /Library/Perl/5.12

Permission denied on getimagesize

梦想与她 提交于 2019-12-11 03:19:10
问题 In my functions.php I got: $size = getimagesize($avatarpath . "/" . $file); $avatarpath is $avatarpath = dirname(__FILE__)."/img/avatars"; My structure: functions.php (in the same directory as img folder). img/avatars Chmods of functions.php , img, avatars has been set to 777. And I still receive the following message: Warning: getimagesize(/home/godaddy/private_html/img/avatars/avatar_1.png): failed to open stream: Permission denied in /home/godaddy/private_html/img/avatars/functions.php on

Writing code inside sudo.exec in Electron App

杀马特。学长 韩版系。学妹 提交于 2019-12-11 03:03:22
问题 I need to execute code with admin rights at many places. I find sudo.exe and successfully prompt user for permission and password. I still could not figure out how exactly to use sudo.exe. As I am getting same error of permission denied while deleting a file that need admin permission. That is how my code looks like: const fs = require('fs') var sudo = require('sudo-prompt'); var options = { name: 'Electron', }; sudo.exec('echo hello', options, function(error, stdout, stderr) { if (error)

Use custom RenderScript in system signed application

泪湿孤枕 提交于 2019-12-10 23:29:26
问题 How to use custom RenderScript script in an application which is signed by system certificate? LogCat output: E/RenderScript: Failed loading RS driver: dlopen failed: cannot locate symbol "_ZN7android12renderscript15RsdCpuReference6createEPNS0_7ContextEjjPFPKNS1_9CpuSymbolES3_PKcEPFPNS1_9CpuScriptES3_PKNS0_6ScriptEEPFPN4llvm6ModuleEPN3bcc8RSScriptESK_SK_EPFS8_S8_jES8_" referenced by "/system/vendor/lib/libRSDriver_adreno.so"... E/RenderScript: Failed to load runtime libRSDriver_adreno.so,

what permissions should jenkins have to execute shell-commands without being insecure?

一世执手 提交于 2019-12-10 22:57:18
问题 I have a script (test.sh) on a local server, which works fine when executed in a terminal. The script removes a directory, and recreates a directory local. It then connects to a remote server using "ssh -i $private_key .." and copies a file there. When I execute this script in jenkins with sh test.sh it doesnt work. I get the following errors: rm: .. Permission denied mkdir: .. Permission denied Warning: Identity file /.ssh/private_key not accessible: Permission denied. Jenkins is on the same

Permissions denied on sql query

吃可爱长大的小学妹 提交于 2019-12-10 20:26:00
问题 I'm trying to execute the following query through classic asp recordset - SQL = "Select P_Name as P_Name, P_Description as P_Description from L_PagePermission inner join A_Permission on p_permissionID = pp_PermissionID inner join A_Page on P_PageID = PP_PageID where P_PageID = 85 order by p_Name" Although I've ran into a problem with permissions. So the error that i am receiving is - Microsoft OLE DB Provider for ODBC Drivers error '80040e09' [Microsoft][ODBC SQL Server Driver][SQL Server

Vagrant folder permissions using nginx

萝らか妹 提交于 2019-12-10 17:44:50
问题 I am new to vagrant and having issues getting working correctly. It is running fine with port forwarding and I can access it. However I am having trouble getting bower and gulp to work correctly. The issue seems to stem from the /var/www directory being owned by www-data/www-data. The vagrant user doesn't have write permissions to any of the directories even after adding vagrant to the www-data group. I am no even able to use sudo chmod to add the write permission to any file. I get no access

Php session files permissions

℡╲_俬逩灬. 提交于 2019-12-10 16:49:03
问题 I have file index.php: <?php session_start(); $_SESSION['favcolor'] = 'green'; And I get result: Warning: session_start() [function.session-start]: open(/tmp/sess_a8njkmbcg3lbkvl7f2hhjchjm5, O_RDWR) failed: Permission denied (13) in /var/www/test.local/index.php on line 9 Warning: Unknown: open(/tmp/sess_a8njkmbcg3lbkvl7f2hhjchjm5, O_RDWR) failed: Permission denied (13) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of