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?













0















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"?










share|improve this question
















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.



















    0















    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"?










    share|improve this question
















    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.

















      0












      0








      0








      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"?










      share|improve this question
















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      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.






















          1 Answer
          1






          active

          oldest

          votes


















          0














          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





          share|improve this answer






















            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
            );



            );













            draft saved

            draft discarded


















            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









            0














            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





            share|improve this answer



























              0














              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





              share|improve this answer

























                0












                0








                0







                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





                share|improve this answer













                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






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Dec 7 '16 at 22:24









                Ipor SircerIpor Sircer

                10.9k11124




                10.9k11124



























                    draft saved

                    draft discarded
















































                    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.




                    draft saved


                    draft discarded














                    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





















































                    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

                    Popular posts from this blog

                    Creating 100m^2 grid automatically using QGIS?Creating grid constrained within polygon in QGIS?Createing polygon layer from point data using QGIS?Creating vector grid using QGIS?Creating grid polygons from coordinates using R or PythonCreating grid from spatio temporal point data?Creating fields in attributes table using other layers using QGISCreate .shp vector grid in QGISQGIS Creating 4km point grid within polygonsCreate a vector grid over a raster layerVector Grid Creates just one grid

                    Why is this plane circling around the Lucknow airport every day?Why do aircraft on Flight Radar 24 jump around randomly sometimes?What airport has this walkway over a taxiway?How does Chicago O'Hare's tower sequence aircraft at peak capacity?Which airport is featured in this Delta commercial?After a crash, for how long is the airport closed?Can a passenger plane stand still in the air, or hover at a fixed location above a ground?What are those trucks towing around, and why?What is this airport outside of Cairo, Egypt?Which US airport has the lowest circling MDH?What is this airport video?

                    What is this called? Old film camera viewer?What makes a good film camera?What to do with an old film camera?What should one look for when buying a used film camera?What is the value and age of this pre-1967 Ricoh 35 mm camera?DSLR recommendation, question about old Canon 35mm film Camera & lensesCan anyone identify the silver rangefinder-style camera in this advertisement?What kind of a Polaroid 600-camera is this?Will an old film camera still work even when not used in a very long time?What is this camera / Can I develop the film?How to fit an action camera into antique (bellows) housing?What to check when buying used and old film bodies?