disable echoing password in etc/init.d encryption boot script
Hello I have this working script in /etc/init.d/
Code:
#!/bin/sh as you can see I tried with the option "stty -echo" but doesn't seem to work.. any idea? thanks |
I've never worked with cryptsetup -- but I'm surprised it echoes the passphrase.
Maybe something like this will do what you want: Code:
read -s -p "Enter password: " mypass I haven't tried it, but just from eyeballing, it looks like it should (might ;-) work. |
Hey thanks, the option -s wasn't supported in my bash shell.
However you prompted me the right way... below is what finally worked Code:
stty -echo |
counter-order.. the above works in a shell but not during boot up!
what's the difference in the echoing between boot up scripts and userspace shell scripts?? why does it work only in the second??? really can't help myself! |
All times are GMT -5. The time now is 11:39 PM. |