-
There's a reason (or several) for their being no root password. You have to understand the original target audience of knoppix to understand why there is no root password by default. Part of the original target audience for knoppix, if I'm correct, was for recoveries, and as a utilities distro, among others. And to scratch Klaus's itch. And it is important for some that the distro remain without a root password, for various reasons. I won't get into all of them. That can be discussed in another area of the forums, if it hasn't been already. One more obvious one is that because of the way knoppix works, a password is useless if ANYONE has physical access to your computer. If they have physical access, they have root access. When you can understand why this is true (any console automatically logs in as root, any shell opened, knoppix user can su without a password even after one is set), then you will have a better understanding of how knoppix works, and why a password for root is useless locally.
This is what you need to understand:
1. There is no password by default.
2. Some applications require a password to work, such as kusers, the screensaver, and others. One other one that you seem to have discovered.
3. In order to use applications that require a root password, you must set one. This is how:
a. If you are logged into runlevel 5 (you have kde running in front of you), open a shell by clicking on the picture of the monitor on the toolbar (which is the "kicker" process btw), and when you hover over it with your mouse pointer, it says "Terminal-Emulation". Click on it once, and select, "shell", and click on that. A shell will open, that gives you a command prompt that says, " knoppix@ttyp2[knoppix]$" or something similar. When you get this prompt, type "su" without the quotes. Hit enter.
b. You will have, "root@ttyp2[knoppix]#" without the quotes. You are now logged in as root. You will be setting the root password, and then exiting root, and continuing your work as knoppix, or as other users you have created, not root. If you stay logged in as root unnecessarily, that is how damage can be done, and how you can make your system insecure.
c. type: "passwd" without the quotes. You will immediately get this:
Enter new UNIX password:
d. Do what it says. Type in your password. You will immediately get this:
Retype new UNIX password:
e. Do what it says. Retype your password. If they don't match, you will get this:
Sorry, passwords do not match
passwd: Authentication information cannot be recovered
If they do match, you will get this:
passwd: password updated successfully
root@ttyp2[knoppix]#
f. Then type "exit" (without the quotes), and hit enter. You will get this:
knoppix@ttyp2[knoppix]$
g. Congratulations. You have successfully set a password for root. You can now use the application you were using, as well as applications such as the gui user tool, kusers to add users, change groups, etc.
You should be able to do the same for knoppix, and you should, so that you can easily stop the screensaver or whatever else. If you don't have a password for knoppix, and the screensaver is activated by some mysterious person, what you do then is use CTRL-ALT F2, F3, or F4 to switch to a console (same as runlevel 3), where you will be at a command prompt, and you will be logged in as root. You can do one of two things at this point. You can either use "top" to find the process number for the screensaver, and kill it while running top, or stop top and type, "kill -9 processnumber" substituting the actual process number for "processnumber" (kill -9 2202, if 2202 is the process number), or instead of using top, you can type, "ps aux | less" and use your arrow keys to go up/down/left/right to see which process number is the correct one to kill for the screensaver.
An alternate method is to switch to one of the consoles, F2, F3, F4, where you will be logged in as root, and su into knoppix, by typing "su knoppix", and you will then be logged in as knoppix instead of root, and set a password. When this is done, you return to your X session (kde), by typing simultaneously, CTRL-ALT-F5, which puts you back at the screensaver, where you can enter the new password you just set.
If you understand the last paragraph, it should be obvious why a password is useless locally. Anyone can type CTRL-ALT-F2, get a console, and type "passwd" and set a NEW password, which gives them access to the entire system, because they have root. Why isn't this a big deal? Because anyone that has local access can get access to your system using other methods (install their own hard drive, use your hard drive as secondary, get root, access, reboot from a knoppix cd without scanning for the configuration file, copying and pasting known password from another system into the correct configuration file in your system (this is true of most other distros as well), etc.
Once you have local access to a computer, its trivial in most circumstances to get access to everything. If security is a major concern, you lock everything up, use an encrypted swap partition and an encyrpted data partition, use the security enhanced linux version, leave a thoroughly checked out guard at the premises, leave another guard to watch the first guard, leave a family member to watch the 2nd guard, make sure it isn't a spouse that knows you are cheating, buy a shredder, install a fireplace/incinerator, install cameras, and so on.
Similar Threads
-
By SurfThaNet in forum General Support
Replies: 2
Last Post: 09-24-2004, 03:54 PM
-
By CyberShadow in forum General Support
Replies: 1
Last Post: 04-05-2004, 06:49 AM
-
By blaxe in forum General Support
Replies: 5
Last Post: 03-14-2004, 04:00 PM
-
By reubensant in forum General Support
Replies: 2
Last Post: 08-10-2003, 01:36 PM
-
By DavidTempler in forum General Support
Replies: 5
Last Post: 05-08-2003, 08: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
-
Forum Rules

IBM System X3850-X5 Server w/4x Intel Xeon E7-4870 CPU , 512 GB DDR3 RAM,NO HDD
$1299.99

Unused IBM 09P0037 MAINBOARD For RS/6000 7044-170 P-Series
$375.00

IBM QRadar xx29 2x Xeon E5-2650v4 2x 900W PSU M5120 12x 3.5" Bay Server No RAM
$179.99

IBM ADP Server Type 7870 AC1 NO HDD | 128GB RAM PC3L | 2 x Xeon E5620
$199.99

IBM SYSTEM X3500 M3 SERVER 7380AC1 TOWER Server XEON E5620 8GB RAID SEE NOTES
$108.92

IBM Power S824 12Bay 4U Server - 2x Power8 CPU, 512GB DDR4, MT: 8286-42A
$1731.00

IBM Power 8 S822L Server 8247-22L POWER8 Enterprise 256GB RAM 2x 00KV626 CPU
$999.99

Compaq ProLiant 1500R 5/100 rack server, Series 3155, with IBM 2.1GB HD, VINTAGE
$295.00

Rare Vintage IBM 93ZZ PowerPC Server Board - MCM Ceramic CPU - 40N1844 - 1.1 lbs
$49.99

IBM 7014-T00 Enterprise 19" Rack Enclosure No Keys
$549.95