sudo
Setting Linux environment variable for another user (sudo)
How can we set environment va开发者_开发百科riables for another user on a machine? I want to run some script with sudo -u xyz but I need to set some environment variables before running the script for[详细]
2023-03-08 14:08 分类:问答Enter password for a sudo command in a chain of commands
In Linux how can I enter the password for one of the commands in a chain of commands which requires a sudo. One example which I can think of is when after running a long compile job, I want to shutdow[详细]
2023-03-07 17:17 分类:问答sudo for single command in bash script
This may be a stupid question. I have a script that I want to be portable between Mac OS X and a Linux box I use. In OS X, a command in the script requires sudo, where on the Linux box, it does not.[详细]
2023-03-04 18:02 分类:问答Preserve sudo environment [duplicate]
This question already has answers here: Why does sudo change the PATH? [closed] (18 answers) Closed 3 years ago.[详细]
2023-03-03 10:34 分类:问答In Terminal: #rails works but #sudo rails does not -RVM Gemset
alec@Locke:~/workspace/rails/nwis$ rails -v Rails 3.0.7 alec@Locke:~/workspace/rails/nwis$ sudo rails -v[详细]
2023-03-02 16:26 分类:问答Find is returning "find: .: Permission denied", but I am not searching in
I have an enormous shell script that I am troubleshoot开发者_如何转开发ing.I often run the script from my home directory with a sudo.Whenever a find is executed, I see this error:[详细]
2023-03-01 06:49 分类:问答Paramiko and sudo
I\'ve been searching the nets for some time now for a solution to my problem, and no luck. My issue is that I can\'t seem to get sudo commands to run with paramiko.[详细]
2023-02-28 21:29 分类:问答PHP sudo in shell_exec
I want to execute a command as root with shell_exec. Now开发者_运维问答 I know this is dangerous, but believe me, you need to login with MOD_AUTH and have the right privilleges to come to this page. I[详细]
2023-02-25 21:34 分类:问答Add a user to Ubuntu server from PHP script
I am trying to write a PHP script which executes a shell command (via system()?) to add a new user to the server. I am thinking about using useradd or adduser but don\'t know how I will get it to work[详细]
2023-02-22 05:24 分类:问答IPython error: /usr/local/bin/iptest: Permission denied
I\'m trying to install iPython in Snow Leopard in Terminal. In the terminal window I type: $sudo /usr/bin/easy_install-2.6 ipython[详细]
2023-02-21 23:08 分类:问答