[Dovecot] doveadm: Fatal: open(/dev/tty)
Dan Langille
dan at langille.org
Tue Oct 22 22:09:57 EEST 2013
On 2013-10-22 14:54, Frank de Bot wrote:
> Dan Langille wrote:
> I received this message today, and remembered, you can't do that...
>
> $ doveadm pw -s SHA512-CRYPT
> Enter new password: doveadm(dan): Fatal: open(/dev/tty) failed: No such
> file or directory
> </pre>
>
> It seems if you have no tty, you can't create a password. Surely there
> is a better way to do this?
>
> Looking at the code, it's trying to open the tty and turn off echo.
>
> For the record: FreeBSD 8.4-RELEASE-p3
>
> And yes, there is no console. I'm attached to a FreeBSD jail from the
> host system, directly via the ezjail-admin console command.
>
> # w
> 6:52PM up 18 days, 23:34, 0 users, load averages: 0.96, 0.57, 0.46
> USER TTY FROM LOGIN@ IDLE WHAT
> #
>
> Ain't nobody there..
> Hi,
>
> It sounds you have forgotten to mount /dev in the jail. You can
> consult http://www.freebsd.org/doc/handbook/jails-build.html for all
> steps to do this.
Thanks Frank. /dev is mounted.
In the jail:
# ls /dev
fd log null ptmx pts random stderr stdin stdout
urandom zero
From the jail host:
$ mount | grep myjail | grep dev
devfs on /usr/jails/myjail/dev (devfs, local, multilabel)
fdescfs on /usr/jails/myjail/dev/fd (fdescfs)
Dovecot, Postfix, & Bacula are running fine.
--
Dan Langille - http://langille.org/
More information about the dovecot
mailing list