Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

password

Status
Not open for further replies.

tuka

Technical User
Jul 6, 2001
438
US
I am setting up printing (samba 2.0.7) from a soalris 2.6 to a NT box with shared printers.
This NT requires a password, how can I get around this to send a print job to one of the printer.
I can do a smbclient -L -U (username%password) to the NT box and get a list of services.
Thanks
 
Hi there,
I did some experimenting with my Solaris box and came up with the following.
Set up a user in the NT domain something like lp with a password of printer.
Then on the Solaris box, issue the following;
smbclient //printserver/printer -U lp%printer -P -c "print filename.txt"

BTW if the file tries to print all on one line, you may need to run dos2unix on the file.

Hope this helps
DT
 
DT,
Thanks for your help, The info works!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top