单项选择题

如果要免交互为tom用户设置一个登录密码,下列操作的是()

A.echo"123"/passwdtom-stdin
B.passwd tom
C.password tom
D.echo 123 passwdtom