[Samba] Added lp, access denied ?

Dave S samba at pusspaws.net
Sun Mar 26 09:38:36 GMT 2006


Hi all,

I have kubuntu running samba as a file server, I have my wifes kubuntu machine 
as a cllient and my works XP machine as a client. All is well and has worked 
great for some time.

I decided to add a samba printer for XP. I modified smb.conf, I can now see 
the printer on XP, I installed the printer driver 'have disk' all AOK then I 
get a message from XP in what looks like a printer spool box

'epson on dave-comp access denied, unable to connect'

I can still access my samba shares through XP AOK, I must have authenticated 
AOK. I get the feeling it is something really simple.

Cheers

Dave




/var/log/samba/....

[2006/03/26 10:26:37, 2] lib/access.c:check_access(324)
  Allowed connection from  (192.168.0.2)
[2006/03/26 10:26:37, 2] smbd/sesssetup.c:setup_new_vc_session(608)
  setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all 
old resources.
[2006/03/26 10:26:37, 2] smbd/sesssetup.c:setup_new_vc_session(608)
  setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all 
old resources.
[2006/03/26 10:27:01, 2] lib/access.c:check_access(324)
  Allowed connection from  (192.168.0.2)
[2006/03/26 10:27:01, 2] smbd/reply.c:reply_special(236)
  netbios connect: name1=DAVE-COMP       name2=WINDOWS
[2006/03/26 10:27:01, 2] smbd/reply.c:reply_special(243)
  netbios connect: local=dave-comp remote=windows, name type = 0


my smb.conf is ...

[global]
    comment = Samba Server

    netbios name = DAVE-COMP
    server string = %v on %L

    workgroup = OFFICE
    wins support = yes
    security = user

    # Give Samba more authority in elections as master browser
    prefered master = yes
    os level = 255

    # Max permissions for a share
    create mode = 0666
    directory mode = 0777

    # Only on my LAN
    hosts allow = 192.168.0.

    # Various system users and superusers cannot be forged for access
    invalid users = root bin daemon adm sync shutdown halt mail news uucp 
operator

    # Stop symink outside of share tree
    wide links = no

    # Hide .??? files from windows
    hide dot files = yes

    # Allow super users dave and vanda access to all
    # admin users = dave,vanda


    # No oplocks, M$ on system & can be dodgey
    level2 oplocks = no
    oplocks = no

    # Setup logging
    syslog = 0
    # syslog 3 for more thorough logging to syslog
    #syslog = 3
    log level = 2

    log file = /var/log/samba/log.%m
    max log size = 50
    debug timestamp = yes

[common]
    comment = Common Linux Directory
    path = /export/samba/common
    read only = no
    valid users = @smblinux

[windows]
    comment = M$ Directory
    path = /export/samba/windows
    read only = no
    valid users = @smbwindows

[archive]
    comment = Archive Directory
    # Permissions when creating files in this share
    create mode = 0660
    directory mode = 0777
    path = /export/samba/archive
    read only = no
    valid users = @smblinux

[epson]
    printable = yes
    print command = /usr/bin/lpr -P%p -r %s
    printer = smb_epson
    printing = BSD
    path = /var/tmp
    valid users = @smbwindows

                          


More information about the samba mailing list