I need help understanding the difference between user “pi” and root

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I bought a raspberry pi so that I can learn Linux, but I'm confused with the users.



Is pi the main user or admin? Or is pi and root the same user?







share|improve this question

















  • 1




    I think you want to read this : unix.stackexchange.com/q/291454/53092
    – Kiwy
    Jun 21 at 11:39














up vote
0
down vote

favorite












I bought a raspberry pi so that I can learn Linux, but I'm confused with the users.



Is pi the main user or admin? Or is pi and root the same user?







share|improve this question

















  • 1




    I think you want to read this : unix.stackexchange.com/q/291454/53092
    – Kiwy
    Jun 21 at 11:39












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I bought a raspberry pi so that I can learn Linux, but I'm confused with the users.



Is pi the main user or admin? Or is pi and root the same user?







share|improve this question













I bought a raspberry pi so that I can learn Linux, but I'm confused with the users.



Is pi the main user or admin? Or is pi and root the same user?









share|improve this question












share|improve this question




share|improve this question








edited Jun 21 at 11:37









Jeff Schaller

30.8k846104




30.8k846104









asked Jun 21 at 10:47









Eric

12




12







  • 1




    I think you want to read this : unix.stackexchange.com/q/291454/53092
    – Kiwy
    Jun 21 at 11:39












  • 1




    I think you want to read this : unix.stackexchange.com/q/291454/53092
    – Kiwy
    Jun 21 at 11:39







1




1




I think you want to read this : unix.stackexchange.com/q/291454/53092
– Kiwy
Jun 21 at 11:39




I think you want to read this : unix.stackexchange.com/q/291454/53092
– Kiwy
Jun 21 at 11:39










2 Answers
2






active

oldest

votes

















up vote
3
down vote













In Linux, you have 2 types of users - the root user (administrative user) and all the other users on the system. (slight over simplification)



On a Rasbian system, the pi user is Just A User.



However, that user is a member of a group that allows them to use the sudo utility to run commands as if they were the root user.






share|improve this answer




























    up vote
    1
    down vote













    They are two different individuals. root is a common Linux and Unix super-privileged person, who can do anything on the system. pi is a default account created by Raspbian installer. Such an account, though it may be named differently and might behave differently on differents OSs, is usually created by all Linux installers. It will usually be somehow able to gain root powers. The logic here is that as few things as possible should be done as root, as little time as possible spent as root, and as few root sessions should be open. Thus you can use either su or sudo to elevate your pi user for certain tasks. See man su and man sudo for a good start.






    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',
      convertImagesToLinks: false,
      noModals: false,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      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%2f451065%2fi-need-help-understanding-the-difference-between-user-pi-and-root%23new-answer', 'question_page');

      );

      Post as a guest






























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      3
      down vote













      In Linux, you have 2 types of users - the root user (administrative user) and all the other users on the system. (slight over simplification)



      On a Rasbian system, the pi user is Just A User.



      However, that user is a member of a group that allows them to use the sudo utility to run commands as if they were the root user.






      share|improve this answer

























        up vote
        3
        down vote













        In Linux, you have 2 types of users - the root user (administrative user) and all the other users on the system. (slight over simplification)



        On a Rasbian system, the pi user is Just A User.



        However, that user is a member of a group that allows them to use the sudo utility to run commands as if they were the root user.






        share|improve this answer























          up vote
          3
          down vote










          up vote
          3
          down vote









          In Linux, you have 2 types of users - the root user (administrative user) and all the other users on the system. (slight over simplification)



          On a Rasbian system, the pi user is Just A User.



          However, that user is a member of a group that allows them to use the sudo utility to run commands as if they were the root user.






          share|improve this answer













          In Linux, you have 2 types of users - the root user (administrative user) and all the other users on the system. (slight over simplification)



          On a Rasbian system, the pi user is Just A User.



          However, that user is a member of a group that allows them to use the sudo utility to run commands as if they were the root user.







          share|improve this answer













          share|improve this answer



          share|improve this answer











          answered Jun 21 at 11:40









          ivanivan

          3,1271213




          3,1271213






















              up vote
              1
              down vote













              They are two different individuals. root is a common Linux and Unix super-privileged person, who can do anything on the system. pi is a default account created by Raspbian installer. Such an account, though it may be named differently and might behave differently on differents OSs, is usually created by all Linux installers. It will usually be somehow able to gain root powers. The logic here is that as few things as possible should be done as root, as little time as possible spent as root, and as few root sessions should be open. Thus you can use either su or sudo to elevate your pi user for certain tasks. See man su and man sudo for a good start.






              share|improve this answer

























                up vote
                1
                down vote













                They are two different individuals. root is a common Linux and Unix super-privileged person, who can do anything on the system. pi is a default account created by Raspbian installer. Such an account, though it may be named differently and might behave differently on differents OSs, is usually created by all Linux installers. It will usually be somehow able to gain root powers. The logic here is that as few things as possible should be done as root, as little time as possible spent as root, and as few root sessions should be open. Thus you can use either su or sudo to elevate your pi user for certain tasks. See man su and man sudo for a good start.






                share|improve this answer























                  up vote
                  1
                  down vote










                  up vote
                  1
                  down vote









                  They are two different individuals. root is a common Linux and Unix super-privileged person, who can do anything on the system. pi is a default account created by Raspbian installer. Such an account, though it may be named differently and might behave differently on differents OSs, is usually created by all Linux installers. It will usually be somehow able to gain root powers. The logic here is that as few things as possible should be done as root, as little time as possible spent as root, and as few root sessions should be open. Thus you can use either su or sudo to elevate your pi user for certain tasks. See man su and man sudo for a good start.






                  share|improve this answer













                  They are two different individuals. root is a common Linux and Unix super-privileged person, who can do anything on the system. pi is a default account created by Raspbian installer. Such an account, though it may be named differently and might behave differently on differents OSs, is usually created by all Linux installers. It will usually be somehow able to gain root powers. The logic here is that as few things as possible should be done as root, as little time as possible spent as root, and as few root sessions should be open. Thus you can use either su or sudo to elevate your pi user for certain tasks. See man su and man sudo for a good start.







                  share|improve this answer













                  share|improve this answer



                  share|improve this answer











                  answered Jun 21 at 11:40









                  Tomasz

                  8,01552560




                  8,01552560






















                       

                      draft saved


                      draft discarded


























                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f451065%2fi-need-help-understanding-the-difference-between-user-pi-and-root%23new-answer', 'question_page');

                      );

                      Post as a guest













































































                      Popular posts from this blog

                      How to check contact read email or not when send email to Individual?

                      Bahrain

                      Postfix configuration issue with fips on centos 7; mailgun relay