Author Topic: [SOLVED] Whats the 'root' password  (Read 381 times)

0 Members and 1 Guest are viewing this topic.

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 1552
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Get your FREE Ubuntu stickers here. I'm the UK address
    • Awards
[SOLVED] Whats the 'root' password
« on: January 05, 2013, 03:29:49 pm »
How do I find out my 'root' password?

Just curious as I found this http://wiki.amahi.org/index.php/Open_Terminal_as_root and wondered how to do it?

I tried the one I enter when typing
Code: [Select]
sudo
but it's NOT the same password.
« Last Edit: January 05, 2013, 10:58:57 pm by pooky2483 »

Kubuntu 12.04LTS 64bit|M3A76-CM|BIOS 2101|AMD PhenomII X4 965 3400+|Realtek RTL8168C(P)|8111C(P) PCI-E Gigabit Ethernet NIC|NVIDIA 128MB GeForce6200 Turbocache|8.0GB Single-Channel DDR2|Chrome|

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 1552
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Get your FREE Ubuntu stickers here. I'm the UK address
    • Awards
Re: Whats the 'root' password
« Reply #1 on: January 05, 2013, 03:34:48 pm »
Just noticed, I was entering it wrong, I was typing
Code: [Select]
su
and NOT
Code: [Select]
su ~
where I get
pooky2483@pooky2483-ubuntu12:~$ su ~
Unknown id: /home/pooky2483
pooky2483@pooky2483-ubuntu12:~$

So, new problem, what’s wrong with it now?

Kubuntu 12.04LTS 64bit|M3A76-CM|BIOS 2101|AMD PhenomII X4 965 3400+|Realtek RTL8168C(P)|8111C(P) PCI-E Gigabit Ethernet NIC|NVIDIA 128MB GeForce6200 Turbocache|8.0GB Single-Channel DDR2|Chrome|

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 12494
  • Karma: 306
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Whats the 'root' password
« Reply #2 on: January 05, 2013, 04:19:31 pm »
What are you trying to do ?

The "root" account on Ubuntu based systems is not activated and available .. DO NOT activate it unless you know what youre doing.

It's normally a good idea to steer clear of a root terminal and run commands that need root permissions with "sudo <command>"

If you MUST have a TRUE root prompt (denoted by a # prompt instead of a $ prompt), run:
Code: [Select]
sudo -i
enter YOUR password .. you will now be at a # prompt with elevated privileges, and your "Home" directory will be /root

To go back to a normal $ prompt run:
Code: [Select]
exit



Code: [Select]
sudo su
will get you a root prompt where your "Home" directory is still /home/<username>

again:
Code: [Select]
exit
will get you back to a normal $ prompt

BE CAREFUL whilst using "sudo su" .. anything written to YOUR "Home" directory will be written as root, with root as the owner .. which runs the risk of making your account unbootable.

MUCH safer to not use a root prompt at all, and just use "sudo" to run commands that need elevated privileges .. or "gksudo" if it's a GUI application.

.
« Last Edit: January 05, 2013, 04:51:12 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 1552
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Get your FREE Ubuntu stickers here. I'm the UK address
    • Awards
Re: Whats the 'root' password
« Reply #3 on: January 05, 2013, 06:40:49 pm »
I was just curious as to why what I mentioned in my first post wouldn’t work.
I know how dangerous it would be tinkering 'under the hood'

Kubuntu 12.04LTS 64bit|M3A76-CM|BIOS 2101|AMD PhenomII X4 965 3400+|Realtek RTL8168C(P)|8111C(P) PCI-E Gigabit Ethernet NIC|NVIDIA 128MB GeForce6200 Turbocache|8.0GB Single-Channel DDR2|Chrome|

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 12494
  • Karma: 306
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Whats the 'root' password
« Reply #4 on: January 05, 2013, 09:41:54 pm »
Because there's no "real" root account in Ubuntu .. so you cannot su (switch user) to root .. the root account is locked and has an encrypted password.

.
« Last Edit: January 05, 2013, 09:45:05 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal