Author Topic: change root password  (Read 1720 times)

Offline caieng

  • Jr. Member
  • **
  • Posts: 12
change root password
« on: January 14, 2011, 04:33:01 AM »
Somehow, I managed to disrupt the normal installation process.  After the installation of Grub, the screen remained unchanged, without instruction, for a long time (older computer PIII 1.1GHz), so I incorrectly thought, ok, I guess I am supposed to reboot.....

So, I did, and of course the installation was thus corrupted.  But, it was not completely unusable, on rebooting, a login screen appeared, and I recalled, from the first screen the name and password for root, and so logged in, then accessed the elegant configuration panel (Drake), created a user, and established automatic login, as usual.

Now, however, I don't know how to change the root password.

Any suggestions, or, do you prefer that I simply start over, from the beginning, again, and try to avoid rushing about this time, by waiting more patiently for a user prompt? It may be helpful, in the future, to prevent this user error, to include a single line of text, informing the user that it will be necessary to wait a few minutes....

Thanks for your suggestions.

CAI ENG

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: change root password
« Reply #1 on: January 14, 2011, 04:41:13 AM »
On older machines, the installation process can seem slow. The last part can be so slow that it seems to hang. It isn't hanging, though. You need to let this process complete, so that the first boot process runs as it should.

Reinstall. That is the best way to insure that there are no hidden errors in the install.


Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3794
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: change root password
« Reply #2 on: January 14, 2011, 12:28:53 PM »
Quote
Now, however, I don't know how to change the root password.

Terminal open and type

Code: [Select]
su <ENTER>
actually password for root <ENTER>
Code: [Select]
passwdfollowing the instructions

Good Luck
Daniel

ps: Better way had Neal wrote

Offline lucid_dream

  • Full Member
  • ***
  • Posts: 77
Re: change root password
« Reply #3 on: January 14, 2011, 12:43:15 PM »
Doesn’t it seem odd that you need the root password to run so much stuff. Yet, pretty much any user can easily change the root password ???
"Don't be afraid of the space between your dreams and reality. If you can dream it, you can make it so."

AMD Athlon 64 3800+ / 2.4 GH
RAM: 512 MB PC2-4200
Onboard Video: NVIDIA GeForce 6150 LE
Internal SATA HDD: 250G Segate
External WD HDD: 250G

Online Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11681
  • ----IOFLU----
Re: change root password
« Reply #4 on: January 14, 2011, 12:46:34 PM »
Doesn’t it seem odd that you need the root password to run so much stuff. Yet, pretty much any user can easily change the root password ???

Only if they already have the present root password. It is root that changes the root password.
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline lucid_dream

  • Full Member
  • ***
  • Posts: 77
Re: change root password
« Reply #5 on: January 14, 2011, 12:57:26 PM »

Quote

Only if they already have the present root password. It is root that changes the root password.

Actually if i recall correctly you can boot off a live cd , mount the root partition and edit the /etc/shadow file.  This process works for MS products as well but i forget the file name that stores the passwords.

it has been many years since taking security classes so i suppose it is possible that this method is no longer valid.
"Don't be afraid of the space between your dreams and reality. If you can dream it, you can make it so."

AMD Athlon 64 3800+ / 2.4 GH
RAM: 512 MB PC2-4200
Onboard Video: NVIDIA GeForce 6150 LE
Internal SATA HDD: 250G Segate
External WD HDD: 250G

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: change root password
« Reply #6 on: January 14, 2011, 01:09:53 PM »

Quote

Only if they already have the present root password. It is root that changes the root password.

Actually if i recall correctly you can boot off a live cd , mount the root partition and edit the /etc/shadow file.  This process works for MS products as well but i forget the file name that stores the passwords.

it has been many years since taking security classes so i suppose it is possible that this method is no longer valid.

Actually, you must be root to change the root password, as has been said already. And yes, if you allow physical access to your computer, you make yourself vulnerable to having someone change root's password via a liveCD. If they know how.

To be secure, think secure. Never allow unsupervised access to your computer. Never allow anyone to watch while you enter a password - root or user.

As most MS users run as admin anyway, it is less secure. All anyone has to do is boot the machine.

Comparing MS to Linux is like comparing apples and oranges. They just are not the same.

 

Offline lucid_dream

  • Full Member
  • ***
  • Posts: 77
Re: change root password
« Reply #7 on: January 14, 2011, 01:23:16 PM »
I agree with you Neal, the only comparison I was making is that they both have a file that can be altered for someone to gain access without the password.

I am trying to refresh my memory without being at my Linux box ...... correct me if i am wrong ...While training on a different distro I seem to recall using the command sudo su
"Don't be afraid of the space between your dreams and reality. If you can dream it, you can make it so."

AMD Athlon 64 3800+ / 2.4 GH
RAM: 512 MB PC2-4200
Onboard Video: NVIDIA GeForce 6150 LE
Internal SATA HDD: 250G Segate
External WD HDD: 250G

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: change root password
« Reply #8 on: January 14, 2011, 01:28:52 PM »
I agree with you Neal, the only comparison I was making is that they both have a file that can be altered for someone to gain access without the password.

I am trying to refresh my memory without being at my Linux box ...... correct me if i am wrong ...While training on a different distro I seem to recall using the command sudo su

PCLinuxOS uses su and/or su - by default; sudo is not set up, unless a user sets it up. This not recommended. Full sudo access / set up is insecure.

Online Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11681
  • ----IOFLU----
Re: change root password
« Reply #9 on: January 14, 2011, 01:31:23 PM »
I agree with you Neal, the only comparison I was making is that they both have a file that can be altered for someone to gain access without the password.

I am trying to refresh my memory without being at my Linux box ...... correct me if i am wrong ...While training on a different distro I seem to recall using the command sudo su

Which only requires the users own password, as no root password is known. We don't use sudo, by default, because of this insecurity.
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3794
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: change root password
« Reply #10 on: January 14, 2011, 03:12:50 PM »
huch a little question, and a big discussion is started  ;D

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: change root password
« Reply #11 on: January 14, 2011, 03:15:33 PM »
huch a little question, and a big discussion is started  ;D

 ;D A bit of a highjack, isn't it?


Offline lucid_dream

  • Full Member
  • ***
  • Posts: 77
Re: change root password
« Reply #12 on: January 14, 2011, 03:24:39 PM »
Just trying to test my knowledge a bit  :) Didn't mean any harm
"Don't be afraid of the space between your dreams and reality. If you can dream it, you can make it so."

AMD Athlon 64 3800+ / 2.4 GH
RAM: 512 MB PC2-4200
Onboard Video: NVIDIA GeForce 6150 LE
Internal SATA HDD: 250G Segate
External WD HDD: 250G

Offline caieng

  • Jr. Member
  • **
  • Posts: 12
Re: change root password
« Reply #13 on: January 16, 2011, 02:31:35 AM »
Quote from: Neal
A bit of a highjack, isn't it?

In my humble opinion, NO.  I thought this thread was very instructive.  THANK YOU.

Quote from: lucid_dream
Just trying to test my knowledge a bit   Didn't mean any harm

No harm delivered, and none received, either.

Please remember, this is a forum.  Folks are supposed to argue, and disagree.  I get the feeling that this forum is TOO tame, too concerned about hurting someone's feelings.

Relax.
Don't be so nervous. 

Yeah, I goofed.  The install screw up was entirely my fault.   I did follow Neal's recommendation:

I reinstalled the December 2010 PCLinuxOS LXDE, and it is fantastic, in my opinion.

I admit to being especially fond of the Drake tool that permits autologin, and especially, adjustment of the screen resolution.
If this forum were not so fussy, about discussing other distros, I would show my results testing PCLinuxOS.  However, I understand that some object to this sort of objective assessment, so, I will make no further mention of it.

I would again reiterate that a simple, single line of text, during the installation, at the point where at present the screen is blank, would reassure both the novice and those as ignorant as I am, that one must wait, until the next step in the process is signalled.

The installer is not defective in my opinion, simply a bit terse, for my taste.  I do have one other comment on the installer:  I prefer those distros which offer the user an opportunity to choose autologin from the getgo, i.e. from the outset, rather than requiring the user to login at least once, find the configuration tool, (which is superb), and enable autologin.  I am simply writing my opinon that this is an unnecessary step, a slightly awkward requirement, which could be eliminated, without harm, and, without any breach of security....

Thanks again to so many who offered an interesting discussion re: passwords. 

CAI ENG