Erik Talvola
1997-Jul-17  17:04 UTC
Trouble with permissions on printing to Windows NT printer from SAMBA on Solaris
I have been trying to get SAMBA on a Solaris 2.5 box to print to a
printer on my Windows NT workstation.  However, I am having some
problems.  I have no problems reading the disk or anything like that -
only printing.
Here is some output:
(1) janus1:~ % smbclient -L hawklord
Added interface ip=10.203.6.100 bcast=10.203.255.255 nmask=255.255.0.0
Server time is Thu Jul 17 10:01:04 1997
Timezone is UTC-7.0
Password:
Domain=[SAPIENT] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0]
Server=[HAWKLORD] User=[] Workgroup=[SAPIENT] Domain=[]
        Sharename      Type      Comment
        ---------      ----      -------
        ADMIN$         Disk      Remote Admin
        C$             Disk      Default share
        D$             Disk      Default share
        Downloads      Disk
        Hunter         Printer   Hunter Test
        IPC$           IPC       Remote IPC
        print$         Disk      Printer Drivers
        Quake          Disk
NOTE: There were share names longer than 8 chars.
On older clients these may not be accessible or may give browsing errors
'Hunter' is the printer I am trying to use.  If I do:
(2) janus1:~ % smbclient '\\hawklord\Hunter' -P
Added interface ip=10.203.6.100 bcast=10.203.255.255 nmask=255.255.0.0
Server time is Thu Jul 17 10:01:59 1997
Timezone is UTC-7.0
Password:
Domain=[SAPIENT] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0]
smb: \> print .cshrc
ERRDOS - ERRnoaccess (Access denied.) opening printer for .cshrc
smb: \> exit
I keep getting Access denied. 
On the Windows NT machine (hawklord), the Printer is defined to allow
Printing by 'Everyone'.  I can print to it locally.
Any ideas?  I have the latest alpha (Version 1.9.17alpha4) with
encrypted passwords compiled in.
Thanks.
--erik
etalvo@sapient.com
talvola@gnu.ai.mit.edu
Bryan Maggard
1997-Jul-19  16:04 UTC
Trouble with permissions on printing to Windows NT printer from SAMBA on Solaris
>smbclient -L hawklordWhen connecting to NT machines I have had to often use the -U and -I parameters (-I for DHCP clients). When NT lets "everyone" print, it means everyone that has permission to login to this NT box. So, you might have to supply a username that is valid on NT. Perhaps even "Guest" would work, but unless your Unix login is recognized on NT then you will have to use -U.