On Sun, May 22, 2005 at 06:05:41PM +0200, Johannes Weiner wrote:
> On Sun, May 22, 2005 at 05:11:11PM +0200, Luigi Pinna wrote:
> > Alle 16:49, domenica 22 maggio 2005, Johannes Weiner ha scritto:
> >
> > > Yeah encryption is not bad, but I wondered why to mount the disks at
> > > once at boottime and make the booting progress stop to enter the
> > > passphrase. You cand mount it manually after the boot..?
> > >
> > > Hannes
> >
> > Yes, of course... but if I want to mount all the partitions (home
> > included) and I use xdm, this operation can be a little bit
> > uncomfortable...
> >
> > The idea is: a script stop the boot process and ask me the password and
> > use this variable as input to cryptsetup... The password isn't stored
> > in the disc and the script mount the device... and it continues the
> > boot process...
> > But I have no idea how to do!
>
> Write a script, that mounts all partitions. You can ask the passphrase
> with `read', but it will be seen on the screen when entering, no idea
> how to hide this.
>
> echo "Enter passphrase: "
> read PASS
>
read's -s option (silent mode) will hide the user's response.
And you can do it all on one line with:
read -p "Enter passphrase: " -s PASS
- PK
> Now, $PASS holds the passphrase and you can use it with cryptsetup.
>
> HTH, hannes
>
> --
> Today is Boomtime, the 69th day of Discord in the YOLD 3171
--
[email protected] mailing list