element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum What is the root password for Debian downloaded from Element 14?
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 10 replies
  • Subscribers 678 subscribers
  • Views 1756 views
  • Users 0 members are here
  • raspberrypi
  • linux
Related

What is the root password for Debian downloaded from Element 14?

Former Member
Former Member over 13 years ago

Pi arrived this morning.

Booted up OK with a SD card previously downloaded from Element 14 and used the username pi and password raspberry to access the preloaded Midori browser.

This wouldn't let me access my hotmail or gmail account, so I decided to try a different browser.

However I couldn't access the root directory as I didn't have the correct password.

What is the Administrative password I need to make changes in the Root Directory?

Apologies if I am being dumb but this is my first excursion with Linux.

  • Sign in to reply
  • Cancel
  • johnbeetem
    johnbeetem over 13 years ago

    My limited understanding of Linux administration is that you don't want to have a root password, as it leaves Linux horribly vunerable if anyone guesses it.  Instead, you have users such as "pi" who are allowed temporary superuser powers using the "sudo" command.  For example, if you do not have the right to rename a file using "mv old-name new-name", you can instead enter "sudo mv old-name new-name".  If you have administrator privileges, Linux will ask for your password and let you be a superuser for just that command.  Try "man sudo" for more information.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 13 years ago

    OK, seek and you shall find.

    Used sudo passwd root to set password.

    Thanks to those who had previously answered this query.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 13 years ago in reply to johnbeetem

    Thank-you.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • morgaine
    morgaine over 13 years ago in reply to johnbeetem

    John Beetem wrote:

     

    My limited understanding of Linux administration is that you don't want to have a root password, as it leaves Linux horribly vunerable if anyone guesses it.

     

    It's a matter of long-standing debate in the *nix sphere.  The proponents of sudo maintain that it slightly raises security and slightly reduces the risk of destroying the system, for novice system administrators.  The detractors of sudo maintain that these fractional changes in security and in risk are meaningless and a delusion, and if your security is based on that then you've already lost.

     

    I don't have a strong opinion on it, because the pros/cons are not significant enough to merit debate.  YMMV.  Having used Unix since the earliest days when I'd get the source tapes from Bell Labs, I don't use sudo myself when working on back-end systems, but I do use it on front-end, public-facing systems to slightly reduce the potential for privilege escalation.  It's no panacea though, even there.

     

    One thing's for sure, sudo is not a replacement for understanding, and even less for thinking.  Not thinking is always a mistake, and random typing will wreak havoc even when "protected" by sudo.

     

    Morgaine.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • johnbeetem
    johnbeetem over 13 years ago in reply to morgaine

    Morgaine Dinova wrote:

     

    John Beetem wrote:

     

    My limited understanding of Linux administration is that you don't want to have a root password, as it leaves Linux horribly vunerable if anyone guesses it.

     

    It's a matter of long-standing debate in the *nix sphere.  The proponents of sudo maintain that it slightly raises security and slightly reduces the risk of destroying the system, for novice system administrators.  The detractors of sudo maintain that these fractional changes in security and in risk are meaningless and a delusion, and if your security is based on that then you've already lost.

    My (still limited) understanding is that one problem with "root" is that since every Unix machine has a user named "root", all you have to guess a password.  If it's forbidden to log in as root, you have to guess both a user name and its password, which is that much harder.

     

    I personally like sudo, since I hate having to remember that I'm running as root and I like to have the computer protect me from my own human errors.  For the same reason, I use "copy" as an alias for "cp -ip" so that Unix asks me before I copy over a file, and the copy keeps the original file date.  This is also handy when I have to switch between Unix and Windows.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • morgaine
    morgaine over 13 years ago in reply to johnbeetem

    John Beetem wrote:

     

    My (still limited) understanding is that one problem with "root" is that since every Unix machine has a user named "root", all you have to guess a password.  If it's forbidden to log in as root, you have to guess both a user name and its password, which is that much harder.

     

    All usernames are visible in the world-readable /etc/passwd file in *nix. image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • johnbeetem
    johnbeetem over 13 years ago in reply to morgaine

    Morgaine Dinova wrote:

     

    John Beetem wrote:

     

    My (still limited) understanding is that one problem with "root" is that since every Unix machine has a user named "root", all you have to guess a password.  If it's forbidden to log in as root, you have to guess both a user name and its password, which is that much harder.

     

    All usernames are visible in the world-readable /etc/passwd file in *nix. image

    Well, I told you my Unix admin knowledge is limited.  So can anyone from anywhere log into any Unix machine as "guest" and cat /etc/passwd?  As long as only local guest logins are allowed that should help prevent many external attacks.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • morgaine
    morgaine over 13 years ago in reply to johnbeetem

    John Beetem wrote:

     

    So can anyone from anywhere log into any Unix machine as "guest" and cat /etc/passwd?  As long as only local guest logins are allowed that should help prevent many external attacks.

     

    Who can login, and from where, is decided by whoever configures the box.  In principle one can set up an account without any password (any username, not limited to just "guest"), but that would be rare except when the machine is only locally accessible by its owner.  Even then it's a questionable thing to do.  However, it's very common to set up no-password logins through ssh, as the login authorization is pre-authenticated with ssh-agent(1).

     

    Once login has succeeded, that is when /etc/passwd is visible, and to everybody who is logged in, regardless of from where.  Its name is historical only, as it no longer carries the actually passwords.  However the usernames it contains are totally open to inspection, and are required for reverse lookup of userIDs.  For example, without that, an "ls -l" command would return numbers instead of names in the file ownership field.  (Likewise for group names, which are looked up in /etc/group.)

     

    Morgaine.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • tpcipri
    tpcipri over 11 years ago

    I ran into this issue when Debian Linux was introduced on the BBB. Somewhere, and I can't remember where, someone mentioned entering the command "sudo su". It changes you to the root user and all inherent privileges. When you want to stop being a super user type "exit" and you will go back to the previous user. It even works when you are logged in remotely through a terminal emulator.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Problemchild
    Problemchild over 11 years ago

    sudo -i has the same  function you are left as root at which point you can set your own password.

     

    BTW there's no worries about  looking at /etc/passwd as the actual password hash is in /etc/shadow

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube