Results 1 to 2 of 2

Thread: Deleting root password on Fedora partition

Hybrid View

  1. #1
    Junior Member
    Join Date
    Feb 2006
    Posts
    1

    Deleting root password on Fedora partition

    Hi

    I am attempting to delete the root password on my Fedora Core partition from Knoppix. Root is the only user account on the partition and after having been a few months since I have used it, I have forgotten the password.

    To do this I need to edit the "shadow" file located in /mnt/sda3/etc/ However I noticed in Konqueror that this file has a lock on it. I used the "root shell" on the penguin icon on the taskbar and opened the "shadow" file using the "vi" command in the console. It displays the line that I need to edit but it won't let me write to the file! Then I noticed that Knoppix will not let me edit ANYTHING on the hardrive anywhere! Not even a damn text file on my windows partition! Even if I changed the persmission option using the right click option.

    I thought one of the primary purposes of Knoppix was for recovery, what good is this if you can't write to the hard drive This reminds me of using a Mac, the level of child proofing is horrible

    Any help will be greatly appreciated.

  2. #2
    Senior Member registered user
    Join Date
    Mar 2004
    Posts
    1,516
    mount the / (root) partition of your Fedora install,
    rightklick, choose action and change read/write mode
    chroot to the mount point of fedora (let us say it is "/mount/point/of/fedora/"
    sudo chroot /mount/point/of/fedora/
    now just type "passwd root" and change password to whatever you want, much safer than trying to edit a shadow string.
    as you most likely do not know the seed nor the key editing wil be risky, both the seed and key vary "randomly" with each install...

Similar Threads

  1. root password
    By abeza in forum Hardware & Booting
    Replies: 2
    Last Post: 01-31-2007, 03:47 PM
  2. Root Password??????
    By DRYICE in forum MS Windows & New to Linux
    Replies: 3
    Last Post: 08-18-2006, 02:06 AM
  3. Deleting Files/Dirs on NTFS Partition using Knoppix 3.7
    By Tiepo in forum MS Windows & New to Linux
    Replies: 6
    Last Post: 03-29-2005, 06:23 AM
  4. What is the Root password in 3.4?
    By kidsatacrux in forum General Support
    Replies: 8
    Last Post: 05-21-2004, 12:48 AM
  5. root password
    By stol in forum General Support
    Replies: 2
    Last Post: 05-13-2004, 03:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Lenovo ThinkPad E14 Gen 2 Laptop 14” HD Ryzen 5 16GB RAM 512GB SSD Win 11 Pro picture

Lenovo ThinkPad E14 Gen 2 Laptop 14” HD Ryzen 5 16GB RAM 512GB SSD Win 11 Pro

$334.99



Lenovo ThinkPad L15 Gen 3 15.6

Lenovo ThinkPad L15 Gen 3 15.6" 16GB, Thunder Black

$241.50



Lenovo ThinkPad E14 Gen 3 Laptop 14” FHD AMD Ryzen 5 16GB RAM 512GB SSD Win 11 picture

Lenovo ThinkPad E14 Gen 3 Laptop 14” FHD AMD Ryzen 5 16GB RAM 512GB SSD Win 11

$374.99



Lenovo ThinkPad L15 Gen 3 15.6

Lenovo ThinkPad L15 Gen 3 15.6" 16GB, Thunder Black

$242.00



Lenovo Legion 5 Gaming 15.1

Lenovo Legion 5 Gaming 15.1" WQXGA OLED 165Hz Core i9-14900HX 16GB 1TB RTX 5070

$1469.00



Lenovo Thinkpad T14 Gen 2i 14

Lenovo Thinkpad T14 Gen 2i 14" 16GB 512GB, Black

$313.00



Lenovo ThinkPad T14 Gen 1 14

Lenovo ThinkPad T14 Gen 1 14" AMD Ryzen 5 16GB 256GB SSD

$219.99



Lenovo - IdeaPad Slim 3i 15.3

Lenovo - IdeaPad Slim 3i 15.3" 2K Touchscreen Laptop - Intel Core 7 350 2026 ...

$679.99



Lenovo ThinkPad L15 Gen 3 15.6

Lenovo ThinkPad L15 Gen 3 15.6" 16GB, Thunder Black

$241.50



Lenovo Thinkbook 14s Yoga ITL 14” Core i7-1165G7, 16GB RAM, 512GB SSD Touch picture

Lenovo Thinkbook 14s Yoga ITL 14” Core i7-1165G7, 16GB RAM, 512GB SSD Touch

$379.00