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
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