su Questions
1
Solved
With docker version Docker version 1.1.0, build 79812e3 on Ubuntu 13.04, and using the docker container created by:
# docker build -t gdb_problem_testing - < THIS_FILE
FROM ubuntu
RUN echo "deb...
3
Solved
There are already some existing questions asked here about running commands as another user. However, the question and answers focus on a single command instead of a long group of commands.
For exa...
1
Solved
3
Solved
I run
ssh root@myhost "sh -x" < myremotecommands.sh
where myremotecommands.sh contains:
#!/bin/sh
sudo su
apt-get update
sudo su -l -p jenkins
whoami
however the command whoami returns 'ro...
2
Solved
I need to test in a bash script if a given user can read a given directory with all files and sub-directories inside. The script runs as root.
Assuming the given user name is $user and the directo...
Phenomenon asked 24/10, 2013 at 14:52
3
Solved
I have an program which I run as root. I would like the program to execute another application as a normal user. I tried setgid() and it works, but I can't then go back to root or another user. The...
1
Solved
I have a Python script, let's say install.py (which I am running as sudo), on OS X that installs homebrew, Xcode, pip, ruby, swig, and, ultimately, salt. The problem is that running and installing ...
3
So I cant get su command to work on a terminal. All I do is type "su" and press enter, it asks for the password and I enter my currently logged in user password. It always gives this error. I swear...
2
Solved
I would like to su to the postgres user on Mac, so that I can run postgres.
What am I doing wrong here?
delirium:~ anna$ sudo su postgres
delirium:~ anna$
Nothing happens. If I try to run post...
Charlatanry asked 25/5, 2012 at 11:6
1
Solved
Java - Jsch sudo command.
I am using Jsch and my task is to login to server and run command as following
sudo su - bumboo
Using following code i am successfully able to connect but when i try t...
1
Solved
I'm trying to run the following command:
ssh -i FILENAME.pem [email protected] su --session-command="./update.sh"
I keep getting the error message:
standard in must be a tty
How can I SS...
Cyrenaic asked 2/1, 2013 at 15:22
2
Solved
I want to change the current user in a shell script in order to give the user the ability to execute the commands as an administrator, by passing the login and password as arguments.
I want to hav...
Astraphobia asked 15/7, 2012 at 16:9
1
Solved
I'm trying to figure out how to a send chain of multiple net-ssh commands after a sudo su - #{su_user} in Ruby.
My current code is below, and hangs with the sudo su command, even after the send_da...
3
I'm writing an app that will use su to execute some commands in the linux kernel. I was wondering how SuperUser figures out that the application is asking for root privileges ? Also, are there any ...
3
Solved
This question has been asked here before but the solutions provided are not working..I am trying to display the contents of /data/dalvik-cache folder. I know that to do this we need to become su. I...
Geniagenial asked 16/9, 2011 at 19:35
1
Solved
I'd like to be able to write a function su_mt_user that (currently) looks like this:
su_mt_user() {
su someuser -c "$*"
}
The objective is to be able to use it like this:
su_mt_user mt-auth --...
1
Solved
I am trying to install a system app from my java code, and so far, I haven't had any success. Following is what I have done so far:
My device is rooted.
My "installer" app is installed as a syst...
Deland asked 21/5, 2012 at 19:37
2
Solved
I'm trying to root my ICS AVD, and have tried this:
adb shell mount -o rw,remount -t yaffs2 /dev/block/mtdblock03 /system
adb push su /system/xbin/su
adb shell chmod 06755 /system
adb shell chm...
Mavis asked 29/3, 2012 at 8:40
2
Solved
For the life of me, I can't get my app to get the response from a process calling busybox from within su shell.
I've tried three different methods, as well as tried a combination of the three to g...
3
Solved
Possible Duplicate : what does the su mean: process = Runtime.getRuntime().exec("su");
I am tired trying all the different things yet i am still unsuccessful in understanding when will s...
2
Solved
i have a problem with my postgreSQL setup on my new Mac OSX Lion machine.
I can't seem to connect to the service
$ createuser -a -d _postgres
Password:
createuser: could not connect to dat...
Mcneill asked 14/10, 2011 at 8:58
1
Solved
I've got an app that's supposed to use some shell commands to copy a file from the sdcard to /system/media/. It will require root, and I am testing on a rooted device. I'm using runtimes to execute...
4
Solved
In my bash script, I execute some commands as another user. I want to call a bash function using su.
my_function()
{
do_something
}
su username -c "my_function"
The above script doesn't work. ...
2
Solved
This command has an empty output.
su user -c "ABC=abc;echo $ABC"
Any idea, how can I define a variable in the input command?
© 2022 - 2024 — McMap. All rights reserved.