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.. -- Dan Langille - http://langille.org/
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. Regards, Frank de Bot 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.. >
On 2013-10-22 14:52, 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..This is mostly for the record, as I found nobody else encountering this problem. Interesting... the same thing on a FreeBSD 9.1-RELEASE-p6 gives a different result. After getting into the jail via 'ezjail-admin console', there is a tty listed: # w 7:14PM up 43 days, 23:52, 1 user, load averages: 0.00, 0.00, 0.00 USER TTY FROM LOGIN@ IDLE WHAT root pts/0 - 7:14PM - w And all is well: # doveoveadm pw -s SHA512-CRYPT Enter new password: -- Dan Langille - http://langille.org/