LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to break root's password? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-break-roots-password-726760/)

Hi_This_is_Dev 05-18-2009 07:03 AM

How to break root's password?
 
Hi All,


As we know that at boot time when we see the OS selection screen we can press "e" to edit it that is Linux OS selection and enter single user mode from where we can easily break the root's password.

So, is there any other method do achieve the same result?


Thanks!

Dev.

Hangdog42 05-18-2009 07:28 AM

Such discussions are not allowed on LQ. Please re-read the rules you agreed to when you joined.

onebuck 05-18-2009 07:55 AM

Hi,

Quote:

Originally Posted by Hi_This_is_Dev (Post 3544515)
Hi All,
As we know that at boot time when we see the OS selection screen we can press "e" to edit it that is Linux OS selection and enter single user mode from where we can easily break the root's password.

So, is there any other method do achieve the same result?
Thanks!

Dev.

For maintenance purposes you can pass the 'single' parameter to the kernel but you would still need the 'root password'.

You can use your install cd/dvd to boot your system then perform mounts that can be chroot to the correct mount that allow you to edit as desired. These methods are used to correct problems on your system yet could be malicious performed.

The LQ rules do state;

Quote:

excerpt from LQ rules;

Posts containing information about cracking, piracy, warez, fraud or any topic that could be damaging to either LinuxQuestions.org or any third party will be immediately removed.
Do a LQ search on the method of chroot.

b0uncer 05-18-2009 08:49 AM

Using 'single user mode' seems to vary a bit between distributions and even their versions; earlier it was common that one could get root privileges by booting into that runlevel without any passwords asked, then some distributions started doing it so (by default) that one needed to enter root password even when booting into single-user mode, and now I again see that it works without the password. I wonder where it's all going..but if you don't set a password to your bootloader or BIOS, then I guess it's not much use to have one for single-user mode either.

All in all, if the disk is not encrypted, it's easy to break. When it is encrypted, it's just harder, not impossible. In the mean time check if other users can read files from your homedirectory; as odd as it sounds, the default policy on a lot of big distributions is to create files with permissions for others to read (but not modify) them..

H_TeXMeX_H 05-18-2009 10:54 AM

Technically you could also use a live CD and just mount the HDD ... assuming the HDD is not encrypted.

I also question your motive for requesting such info. Whatever we will respond with kinda makes us accomplices to a potential crime, so I'd rather leave it as the simplest possible solutions.

pixellany 05-18-2009 02:37 PM

This is probably more help than we should be giving on this topic.

Closed


All times are GMT -5. The time now is 08:55 AM.