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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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 Root (#)vs user($) name conflict?
  • 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 5 replies
  • Subscribers 665 subscribers
  • Views 457 views
  • Users 0 members are here
  • help
  • helpme
  • element14
  • raspberry_pi
Related

Root (#)vs user($) name conflict?

Former Member
Former Member over 12 years ago

Long story short I have setup my user on my pre loaded OS Dabian as pi Which would seem to been the root name also, so I do not seem to be able to login as root.

My question is : Can I recover this or will I have to start again with a fresh image?  Having some difficulty with win32Diskimager just now all in good time I guess.

  • Sign in to reply
  • Cancel
  • msilveus
    msilveus over 12 years ago

    You can switch to root by executing sudo -s

     

    Mike

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

    The default user "pi" is not really the same as the "root" user, but is an admin user that can do any command as root using sudo prefix, or can act as root by doing what Michael said.

     

    It is NOT a good idea to run as root all the time, because one typing error could possibly erase all files on the system.  But it is perfectly safe to run as user pi, where all you can erase is you own files, as long as you are extra careful what you type when using sudo.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Kuya.Marc
    Kuya.Marc over 12 years ago

    Hello! If you're coming from Microsoft Windows XP platform (not Windows 7+), the default pi account in Raspbian OS is like the primary user account (the one you created) when installing (Windows XP). It is given adminstrator (admin/root) rights, that's how you are able to install software without entering a password. The pi account is just like Windows XP's default user account.

    Before continuing, you may want to unlock the root account and make a password for it. Using the default pi account, enter sudo passwd root to create/modify the root password.

    To change that, enter sudo visudo as a normal user ($) account, such as pi, and remove NOPASSWD: strings. If you really want to seperate pi from root, then delete the line with pi in it by pressing Ctrl-K keys. Then save with Ctrl-O [enter] and Ctrl-X [enter].

    Once you deleted pi from visudo, you can access the root by typing su - at the normal user ($) prompt.

     

    Generally, you can use nearly all the non-root/non-admin apps without having to have root access.image

     

    Hopefully, this helps out.

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

    Wow! Thanks for the help much aprecated.

    I got the PI as a Xmas gift and it is a wee bit beyond my current computing skills but I am egar to get stuck in, learn and develope some awsome projects. Its good to know there is help so readly at hand. Thanks again.

     

    P.S any one got any segested reading materials for a PI/Dabian Beginer?

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

    P.S any one got any segested reading materials for a PI/Dabian Beginer?

     

    * There is an *Offical* Pi user manual avaliable for download from the Amazon book store (you have to buy it - no surprises there image).

     

    * Otherwise, there is always here (On the forums) and the wiki: http://elinux.org/RPi_Hub

     

    * Google image image

     

    If all else fails, you can always play around and see what happens.  After all, all you need to do is just reflash the SD card and away you go again.

    • 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