PDA

View Full Version : passwd knoppix



TDSK
05-28-2003, 07:57 PM
I Was wondering if I was to put the following command into a script that I called at boot time, would it work?

passwd knoppix $'\n' 'NewPassword' $'\n' 'NewPassword' $'\n'

Trying to get the password automatically set upon boot to a default password of my choosing (Yes I know it's insecure, but it's not something I'm worried about the security on)

The $'n' is supposed to be a carriage return (Enter I'm hoping).

Will this this work or is there something else I need to do to do what I want this to do? I'm not at a machine I can test it on at the moment or else I wouldn't have posted that :o

kovacszoltan
05-28-2003, 08:23 PM
Why do you need the password?
You want to start a sshd? Then start it from the hdd while customizing, create the keys, set the password and stop it. And create the compressed fs.

Bye