LINCOLN, Neb. (AP) A Texas man who duped an ATM into giving out $10s and $20s instead of $1 bills has been given probation and 180 days in a Nebraska jail.

On Wednesday, a judge also ordered 21-year-old Nicholas Foster to make restitution of more than $1,900. He was credited with time he had already spent behind bars.

Foster, who authorities say is from Hunt County, Texas, had pleaded no contest to felony theft.

Police say he and a companion, 22-year-old Jordan Eske, had reprogrammed five privately owned ATMs in Lancaster County.

Spokeswoman Katie Flood said Thursday that the ATMs' owners failed to change the default access code of the machines. Foster and Eske knew that code, so they could access the machine commands.

Eske's scheduled for sentencing next month.

Information from: Lincoln Journal Star,

Copyright 2009 The Associated Press.