[Samba] Need help with printer drivers

Rowland Penny rpenny at samba.org
Fri Nov 11 08:15:05 UTC 2016

On Fri, 11 Nov 2016 08:59:47 +0800
Aaron Lewis <the.warl0ck.1989 at gmail.com> wrote:

> Are your windows machines part of the 'WORKGROUP' workgroup ?
> - Yes, and the windows client is not a domain member.
>   I've checked the system properties, it show WORKGROUP
> Does 'work' exist as a Unix user ?
> - Yes, otherwise `smbpasswd -a work` complains
> Does 'work' exist as a windows user ?
> - No, the windows client can be any user.
>   The current logon username is Aaron.
> Is the password for 'work' the same everywhere ?
> - No, the work user does not have a unix password. I only set one with
> smbpasswd.
> Does 'work' have access to /var/lib/samba/printers ?
> - Initially it does not. So I did a chmod 777 -R
> /var/lib/samba/printers, but it's still access denied
> Hmm, I'm not sure if the windows client is connecting with anonymous,
> and there's no much log in /var/log/
> Should I dig deeper in samba user authentication?

I would start by reading 'man smb.conf'

The way you have it set up at the moment, only 'work' can connect, but
you do not have a Unix user called 'work' so this user cannot connect
to the underlying OS. Unix uses 'UGO' permissions, this means that you
can set permissions for the owner (U), the group (G) and others (O) but
Unix must know who these users and groups are.

It might help if you also read this:



More information about the samba mailing list