FAQ Database Discussion Community


permission denied when using su to execute a node proggram

linux,node.js,service,su
here is my node program var fs = require('fs'); fs.writeFileSync('./data.txt', 'test'); it is in /home/test/ and the test directory 's privilege is rwxrwxrwx. when i run node test.js with the tomcat account, the data.txt could be created. but when i run a service to execute su tomcat -c 'node /home/test/test.js',...

What to use to SU to root from regular user for scp or sftp?

linux,su
I want to connect to a server but I need to turn root to be able to copy some files. I use WinSCP, I heard that it's possible to become root just after the authentification but for a sudoer without a password. The problem is that I need to write...

How can i avoid android background process starvation?

android,process,su,thread-priority
I'm running a native background process from an android app with Runtime.exec(). It seems like every few seconds the process is put to sleep for like 200 ms. It looks like the android operating system is just starving that process. Is there some way I can change the process priority...

Copy Files and directories with su command on rooted device

android,root,su
Similar Questions are often asked here, but I can´t figure out, what exactly I have to do. This is not a duplicate, because the solutions on many threads here are not what I am looking for or doesn´t work for me. I want to copy files and directories to a...

Why does `su` not work in Jenkins?

shell,jenkins,su
su doesn't seem to work as intended when run in Jenkins build job script. su username1234 whoami returns jenkins My initial guess is that each line of the Jenkins shell script is a new shell. But doing repeated echo $$ on separate lines shows that's not the case. ...