| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 30123 | 2003-02-11 05:55:00 | Quick knoppix question. | nz_liam (845) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 120166 | 2003-02-11 05:55:00 | I have the cut-down PCD Knoppix CD, I am using it to do some diagnotic tasks on my RedHat 8 linux partition. I need to access /mnt/hda3/home/liam, however this directory is locked to the user 'liam' (me) so I can open it, so I thought 'su knoppix and chmod the direcotry'. However when I try to su the command prompt it asks for a password, (I have tried a few logical ones like pass, knoppix etc), which I dont know. What it the password for root? Or is there another way I can type in the password for the user 'liam' (me) and access the folder? Cheers Liam |
nz_liam (845) | ||
| 120167 | 2003-02-11 05:56:00 | *I have the cut-down PCW Knoppix CD... | nz_liam (845) | ||
| 120168 | 2003-02-11 06:18:00 | Actually I think I've just answered my own post. gracie.santarosa.edu 7. # Getting a root shell command prompt: If you have booted to the KDE graphical environment, you can switch to a text-mode root shell by pressing Ctrl+Alt+F1. When you see the text screen, press Enter to display a command prompt, as shown above. To switch back to KDE, press Ctrl+Alt+F5. * Alternatively, you can launch a terminal window by clicking on the "Konsole" icon on the task bar at the bottom of the screen. The icon looks like a video screen with a seashell in front of it. * However, you don't get a root shell with Konsole: Knoppix's KDE logs you in as the restricted user "knoppix", which cannot access root-only files with normal commands. To work around this, you can: o Prefix every command line with the command "sudo ". For example, to copy the shadow file to the /tmp directory, you'd enter: sudo cp shadow /tmp |
nz_liam (845) | ||
| 120169 | 2003-02-11 06:37:00 | I haven't checked that link but what I do is take over the root. at prompt: sudo passwd root type your password su root type the password and you have a root terminal. |
Kame (312) | ||
| 120170 | 2003-02-11 07:45:00 | Thanks for that, what I ended up doing was Ctrl+Alt+F1 which gives a root prompt, then Ctrl+Alt+F5 to return to X. Incidently how would I go about creating a zip/tar.gz from the command prompt, and then adding the /mnt/hda1/home/liam directory (and its subdirectories to the archive? Cheers Liam |
nz_liam (845) | ||
| 120171 | 2003-02-11 12:43:00 | Well after a hell of a lot of learning of bash stuff *the hard way, and a lot of trial and error, (I need one of thoes VI reference mugs from linux-shop.co.nz :D), this is what I ended up doing; 1. I booted RedHat into the command prompt, logged in as liam, then typed in "chmod -R 777 /home/liam/". 2. Booted into knoppix, and saved the files I wanted into .tar file. 3. Uploaded the file via ftp to a server on my local network. 4. Wrote this post :p Thanks for the help. Liam (who hasn't used windows for 7 days now! :):)) |
nz_liam (845) | ||
| 1 | |||||