cups change password for network printer

Some days ago, I posted a message on how to configure a windows network printer in Debian.

Now the problem is when I change the user domain password, how to change it in cups via console without accessing to the web interface. Here it is:

$ sudo lpadmin -p printer -E -v smb://domain\user:password@server/printer

The -p parameter must be putted before any other or lpadmin will complain saying

lpadmin: Unable to connect to server: Bad file descriptor


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s