[Samba] windows printing on samba server

Martin Zielinski mz at seh.de
Thu Dec 23 08:05:04 GMT 2004


Hi,
the "access denied" message might have so many reasons ...

- First of all, the "printer admin" parameter is a global parameter.
When you place it in the printers section, it does not function.
- Then you don't have an "guest account" parameter. That means, if you are not 
root - you are "nobody". Make shure, that this user has the rights to do what 
you're expecting him to do.
- Do you have driver installed for your printer?
- You could try a higher log level (e.g. smbd -D 10) to get more info in your 
logs.
- In a simply enviroment like yours you could use a username map for testing:
E.g.    username map             = /etc/samba/username.map

Where the username.map looks like this:
root = *

Now everyone becomes printer admin. This might help do come closer to the 
problem.
 
Bye,
Martin

On Thursday 23 December 2004 05:36, Mike Noble wrote:
> I am trying to get my windows machine to print to my samba server.  I
> would like to
> have it so that each user does not have to have an account.  I't just
> at my house
> so it really is not that bad, but would prefer not to.  I have a
> directory shared out
> which works well with out needing an account.  But when I try to look at
> the printer from a Win2k machine it says access denied unable to connect.
> Here is my smb.conf file:
>
> # Global parameters
> [global]
>        protocol = NT1
>        log file = /var/log/samba/log.%m
>        ldap ssl = no
>        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
>        domain master = yes
>        map to guest = Bad User
>        wins support = true
>        dns proxy = no
>        server string = Samba Server %v
>        workgroup = NOBLE
>        os level = 20
>        printcap name = cups
>        security = user
>        max log size = 50
>        load printers = yes
>        printing = cups
>        printcap name = cups
>
> [printers]
>        comment = All Printers
>        path = /var/spool/samba
>        browseable = no
>        public = yes
>        guest ok = yes
>        writable = no
>        printable = yes
>        printer admin = root
>
> [print$]
>        comment = Printer Drivers
>        path = /var/lib/samba/printers
>        guest ok = yes
>        browseable = yes
>        read only = yes
>        write list = root
>
> [shares]
>        guest ok = yes
>        force user = mgnoble
>        force group = mgnoble
>        comment = Shared files
>        writable = yes
>        path = /home/shares
>
> I have looked at the samba logs and there is nothing listed.
>
> Mike

-- 
Martin Zielinski                       mz at seh.de
Software Development
SEH Computertechnik GmbH     www.seh.de


More information about the samba mailing list