Printing problems

Prakash Mahesh prakash at drawcomp.com
Thu Mar 4 21:20:44 GMT 1999


Hi,
I installed Samba 2.0.3 on my Irix6.2 machine and now have a PC mount my
Irix files successfully.

Now, I am trying to print from the PC to the printer connected to the
UNIX network. I have "lp" setup on my Irix network such that it logs to
/var/spool/lp. 

I edited the smb.conf file to have proper "print command". Now when I
try to "add printer" from my PC (Win 98), it is recognizing \\server\lp
but when it tries to print a test page, it says "unknown system error".

Now, I try to use smbclient to do the print. I logon. Then when I do
"print file", the contents of the file are gone (becomes 0 bytes). I
have tied changing lot of things in my smb.conf file, but no success.
Here is my testparm result:
# Global parameters
        workgroup = WORKGROUP
        netbios name = 
        netbios aliases = 
        server string = Samba 2.0.3
        interfaces = 
        bind interfaces only = No
        security = USER
        encrypt passwords = No
        update encrypted = No
        use rhosts = No
        min passwd length = 5
        map to guest = Never
        null passwords = No
        password server = 
        smb passwd file = /usr/samba/private/smbpasswd
        hosts equiv = 
        root directory = /
        passwd program = /usr/bin/passwd %u
        passwd chat = *ew*password:* %n\n *e-enter*new*password:* %n\n
        passwd chat debug = No
        username map = 
        password level = 0
        username level = 0
        unix password sync = No
        log level = 2
        syslog = 1
        syslog only = No
        log file = 
        max log size = 50
        timestamp logs = Yes
        protocol = NT1
        read bmpx = Yes
        read raw = Yes
        write raw = Yes
        nt smb support = Yes
        nt pipe support = Yes
        nt acl support = No
        announce version = 4.2
        announce as = NT
        max mux = 50
        max xmit = 65535
        name resolve order = lmhosts host wins bcast
        max packet = 65535
        max ttl = 259200
        max wins ttl = 518400
        min wins ttl = 21600
        time server = No
        change notify timeout = 60
        deadtime = 0
        getwd cache = Yes
        keepalive = 300
        lpq cache time = 10
        max disk size = 0
        max open files = 10000
        read prediction = No
        read size = 16384
        shared mem size = 1048576
        socket options = TCP_NODELAY
        stat cache size = 50
        load printers = Yes
        printcap name = lpstat
        printer driver file = /usr/samba/lib/printers.def
        strip dot = No
        character set = 
        mangled stack = 50
        coding system = 
        client code page = 850
        stat cache = Yes
        domain groups = 
        domain admin group = 
        domain guest group = 
        domain admin users = 
        domain guest users = 
        machine password timeout = 604800
        add user script = 
        delete user script = 
        logon script = %U.bat
        logon path = \\%N\%U\profile
        logon drive = 
        logon home = \\%N\%U
        domain logons = Yes
        os level = 0
        lm announce = Auto
        lm interval = 60
        preferred master = No
        local master = No
        domain master = No
        browse list = Yes
        dns proxy = Yes
        wins proxy = No
        wins server = 
        wins support = Yes
        kernel oplocks = Yes
        ole locking compatibility = Yes
        smbrun = /usr/samba/bin/smbrun
        config file = 
        preload = 
        lock dir = /usr/samba/var/locks
        default service = 
        message command = 
        dfree command = 
        valid chars = 
        remote announce = 
        remote browse sync = 
        socket address = 0.0.0.0
        homedir map = 
        time offset = 0
        unix realname = No
        NIS homedir = No
        panic action = 
        comment = Samba %v
        path = 
        alternate permissions = No
        revalidate = No
        username = 
        guest account = nobody
        invalid users = 
        valid users = 
        admin users = 
        read list = 
        write list = 
        force user = 
        force group = 
        read only = Yes
        create mask = 0744
        force create mode = 00
        directory mask = 0755
        force directory mode = 00
        guest only = No
        guest ok = No
        only user = No
        hosts allow = 
        hosts deny = 
        status = Yes
        max connections = 0
        min print space = 0
        strict sync = No
        sync always = No
        print ok = No
        postscript = No
        printing = sysv
        print command = /usr/bin/lp -c -d%p -t"%U on machine %m" %s ; rm
%s
        lpq command = lpstat -o%p
        lprm command = cancel %p-%j
        lppause command = lp -i %p-%j -H hold
        lpresume command = lp -i %p-%j -H resume
        queuepause command = lpc stop %p
        queueresume command = lpc start %p
        printer name = hops
        printer driver = NULL
        printer driver location = 
        default case = lower
        case sensitive = No
        preserve case = Yes
        short preserve case = Yes
        mangle case = No
        mangling char = ~
        hide dot files = Yes
        delete veto files = No
        veto files = 
        hide files = 
        veto oplock files = 
        map system = No
        map hidden = No
        map archive = Yes
        mangled names = Yes
        mangled map = 
        browseable = Yes
        blocking locks = Yes
        fake oplocks = No
        locking = Yes
        oplocks = Yes
        strict locking = No
        share modes = Yes
        copy = 
        include = 
        exec = 
        postexec = 
        root preexec = 
        root postexec = 
        available = Yes
        volume = 
        fstype = NTFS
        set directory = No
        wide links = Yes
        follow symlinks = Yes
        dont descend = 
        magic script = 
        magic output = 
        delete readonly = No
        dos filetimes = No
        dos filetime resolution = No
        fake directory create times = No

[homes]
        comment = Home Directories
        read only = No
        browseable = No

[printers]
        comment = All Printers
        path = /usr/tmp
        create mask = 0700
        guest ok = Yes
        print ok = Yes
        browseable = No

[tmp]
        comment = Temporary file space
        path = /usr/tmp
        read only = No
        guest ok = Yes

[netlogon]
        path = /data/dos/netlogon


Is anything obviously wrong? Any ideas? Thanks, and please note that I
am not in the list, so plese email me directly.

Thanks.

-- 
  Prakash Mahesh                                     
  prakash at drawcomp.com
  	--or--
  prakash at openworlds.com


More information about the samba mailing list