Re: Patch: Prompt for required password when mounting a drive



Martin Pitt wrote:
> I think this is the way to go for GUI'izing password entries.
> gnome-volume-manager and gnome-vfs-daemon should ask for a passphrase
> and pass it to mount/pmount rather than trying to modify and scan
> /dev/tty. mount has the -p option which is roughly equivalent to
> pmount's --passphrase (it just takes a file fd number rather than a
> path). 
> 
> So, Nate, you should adapt your patch to use mount -p instead.

I had thought about this and tried it before developing the current
solution.

> Does that help you a bit? If not, don't hesitate to ask.

Well, not really. A password is not always needed. Mount prompts when a
password is needed. SMB mounts don't always need a password. My patch
also fixes the problem of mounting encrypted loopback devices, etc...

So my question is, how would you guess in advance if a password is
needed. I'm not sure you can. Basically that's up to the mounting program.

But maybe there's another idea I'm not seeing that'll help us get around
this problem.

Cheers,
Nate




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]