doveadm cannot work without a tty

I got this message today:

$ doveadm pw -s SHA512-CRYPT
Enter new password: doveadm(dan): Fatal: open(/dev/tty) failed: No such file or directory

It seems if you have no tty, you can’t create a password. Surely there is a better way to do this?

# w
 7:21PM  up 19 days, 4 mins, 0 users, load averages: 0.48, 0.77, 0.67
USER             TTY      FROM              LOGIN@  IDLE WHAT
#

That’s on a FreeBSD 8.4-RELEASE-p3 jail. To access that jail, I ssh’d to the jail host, then issued the the ‘ezjail-admin console’ command.

However, on a FreeBSD 9.1-RELEASE-p6 jail, the results are slightly different. After issuing the ‘ezjail-admin console’ command, you see a tty:

# 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
#

Issuing the doveadm command gives much better results.

# doveadm pw -s SHA512-CRYPT
Enter new password:

Seems OK there…

Website Pin Facebook Twitter Myspace Friendfeed Technorati del.icio.us Digg Google StumbleUpon Premium Responsive

Leave a Comment

Scroll to Top