Sudo command in bashPrompt for sudo password and programmatically elevate privilege in bash script?SSH + Sudo + Expect in Bash script: Run command with sudo in remote machinesudo: script launched from another script won't redirect standard outputrun a command as different user with available sudo permissionssudo -u git cloneStrange bash sytax error depending on sudo usageMultiple here documents in a bash script to drop in and out of sudo is causing error “Sessions still open, not unmounting”Unknown Option Flag when running with sudoRun a bash script as root user which has a sudo command in the scriptRun entire bash script as root or use sudo on the commands that need it?
This Alpine town?
Why is a very small peak with larger m/z not considered to be the molecular ion?
Power Strip for Europe
Does Christianity allow for believing on someone else's behalf?
What's the 'present simple' form of the word "нашла́" in 3rd person singular female?
How exactly does an Ethernet collision happen in the cable, since nodes use different circuits for Tx and Rx?
How do I print a field from the bibliography
What is better: yes / no radio, or simple checkbox?
Street obstacles in New Zealand
Which classes are needed to have access to every spell in the PHB?
Why does Central Limit Theorem break down in my simulation?
MySQL importing CSV files really slow
Why does Solve lock up when trying to solve the quadratic equation with large integers?
Why does cron require MTA for logging?
Is it safe to abruptly remove Arduino power?
Are small insurances worth it?
What is the population of Romulus in the TNG era?
How do electrons receive energy when a body is heated?
Numbers app - select all the cells on an existing table to share the same background colour?
How do spaceships determine each other's mass in space?
Confusion about Complex Continued Fraction
Doubts in understanding some concepts of potential energy
Can one live in the U.S. and not use a credit card?
Should I take out a loan for a friend to invest on my behalf?
Sudo command in bash
Prompt for sudo password and programmatically elevate privilege in bash script?SSH + Sudo + Expect in Bash script: Run command with sudo in remote machinesudo: script launched from another script won't redirect standard outputrun a command as different user with available sudo permissionssudo -u git cloneStrange bash sytax error depending on sudo usageMultiple here documents in a bash script to drop in and out of sudo is causing error “Sessions still open, not unmounting”Unknown Option Flag when running with sudoRun a bash script as root user which has a sudo command in the scriptRun entire bash script as root or use sudo on the commands that need it?
I am using bash script to retrieve files for an Arduino. I am using bash script instead of sudo. Here are my instructions:
The following command will clone the brewpi-script repository into /home/brewpi, an empty directory you should have created in the previous step. The python script will run as the brewpi user, so it is best if we run Git as the brewpi user too, so all new files are owned by the brewpi user. We do this by adding sudo -u brewpi to the command.
sudo -u brewpi git clone https://github.com/BrewPi/brewpi-script /home/brewpi
I have learned I don't need the sudo command, but the -u is giving me a "command not found" error. What is the bash equivalent to "-u"?
bash sudo
bumped to the homepage by Community♦ 1 hour ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I am using bash script to retrieve files for an Arduino. I am using bash script instead of sudo. Here are my instructions:
The following command will clone the brewpi-script repository into /home/brewpi, an empty directory you should have created in the previous step. The python script will run as the brewpi user, so it is best if we run Git as the brewpi user too, so all new files are owned by the brewpi user. We do this by adding sudo -u brewpi to the command.
sudo -u brewpi git clone https://github.com/BrewPi/brewpi-script /home/brewpi
I have learned I don't need the sudo command, but the -u is giving me a "command not found" error. What is the bash equivalent to "-u"?
bash sudo
bumped to the homepage by Community♦ 1 hour ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I am using bash script to retrieve files for an Arduino. I am using bash script instead of sudo. Here are my instructions:
The following command will clone the brewpi-script repository into /home/brewpi, an empty directory you should have created in the previous step. The python script will run as the brewpi user, so it is best if we run Git as the brewpi user too, so all new files are owned by the brewpi user. We do this by adding sudo -u brewpi to the command.
sudo -u brewpi git clone https://github.com/BrewPi/brewpi-script /home/brewpi
I have learned I don't need the sudo command, but the -u is giving me a "command not found" error. What is the bash equivalent to "-u"?
bash sudo
I am using bash script to retrieve files for an Arduino. I am using bash script instead of sudo. Here are my instructions:
The following command will clone the brewpi-script repository into /home/brewpi, an empty directory you should have created in the previous step. The python script will run as the brewpi user, so it is best if we run Git as the brewpi user too, so all new files are owned by the brewpi user. We do this by adding sudo -u brewpi to the command.
sudo -u brewpi git clone https://github.com/BrewPi/brewpi-script /home/brewpi
I have learned I don't need the sudo command, but the -u is giving me a "command not found" error. What is the bash equivalent to "-u"?
bash sudo
bash sudo
edited Dec 7 '18 at 23:33
Rui F Ribeiro
41.4k1481140
41.4k1481140
asked Dec 7 '16 at 22:06
user204412user204412
1
1
bumped to the homepage by Community♦ 1 hour ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 1 hour ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
sudo -u brewpi is one command with one parameter (username). Skip this command with its parameter, so simply run:
git clone https://github.com/BrewPi/brewpi-script /home/brewpi
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f328800%2fsudo-command-in-bash%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
sudo -u brewpi is one command with one parameter (username). Skip this command with its parameter, so simply run:
git clone https://github.com/BrewPi/brewpi-script /home/brewpi
add a comment |
sudo -u brewpi is one command with one parameter (username). Skip this command with its parameter, so simply run:
git clone https://github.com/BrewPi/brewpi-script /home/brewpi
add a comment |
sudo -u brewpi is one command with one parameter (username). Skip this command with its parameter, so simply run:
git clone https://github.com/BrewPi/brewpi-script /home/brewpi
sudo -u brewpi is one command with one parameter (username). Skip this command with its parameter, so simply run:
git clone https://github.com/BrewPi/brewpi-script /home/brewpi
answered Dec 7 '16 at 22:24
Ipor SircerIpor Sircer
10.9k11124
10.9k11124
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f328800%2fsudo-command-in-bash%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
-bash, sudo