[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: How to pass a password to `mount`?
From:       Brad Hards <bradh () frogmouth ! net>
Date:       2005-02-20 4:16:30
Message-ID: 200502201516.36416.bradh () frogmouth ! net
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Sun, 20 Feb 2005 15:06 pm, Mark A. Taff wrote:
> In a shell, `mount /dev/loop0` will prompt me for a password, which I have
> to enter. =C2=A0I would like to be able to use kdiskfree to specify the m=
ount
> command as the script I'm writing. =C2=A0Kdialog would then prompt for a
> password.
>
> The key diff here is that according to man mount, you can specify the
> password within the mount command itself.
what happens if you
echo "password"  | mount  /dev/loop0 -p 0
on the command line

(where you echo the right password, of course).

Brad

[Attachment #5 (application/pgp-signature)]

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic