View Full Version : boot parameter "password"
bsdlamer
10-20-2005, 11:46 AM
In the Headless-Knoppix-Howto, i'v seen not documented (can't find it in knoppix-cheats) kernel-parameter "password". When i try to give this parameter to the kernel, nothing happens. I need to set passwords without using knoppix.sh or remastering knoppix. Is it possible ?
bsdlamer
10-20-2005, 03:04 PM
my own solution
------------------------knoppix.sh--------------------------------------
#!/bin/sh
# get the kernel commandline
CMDLINE="$(grep -o -e 'password=[[:alnum:]]\+' /proc/cmdline | sed -e 's/password=//')"
echo "setting rootpassword"
echo "root:$CMDLINE" | chpasswd
# bringing up sshd
/etc/init.d/ssh start
------------------------knoppix.sh---------------------------------------
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.