A printer having a direct-printing function for reading and printing data
stored in a storing unit, the printer including a connecting device, a
user storage that stores user information including information of users
permitted to print using the direct-printing function, a reading unit
that reads identification information from data stored in the storing
unit, a determining unit that determines whether the identification
information corresponds to the user information, a direct-printing
controlling unit that permits printing of the data using the
direct-printing function if the determining unit determines that the
identification information corresponds to the user information and
prohibits printing of the data using the direct-printing function if the
determining unit determines that the identification information does not
correspond to the user information, and a print-executing unit executing
printing if the direct-printing controlling unit permits printing of the
data using the direct-printing function.