[Samba] ?= unable to upload printer drive

Rowland Penny rpenny at samba.org
Wed Dec 7 08:53:48 UTC 2016


On Wed, 07 Dec 2016 09:08:02 +0100
Heinz Hölzl <heinz.hoelzl at gvcc.net> wrote:

> > >  Hi,
> > >  
> > > > Follow this wiki page:
> > > > 
> > > > https://wiki.samba.org/index.php/Setup_a_Samba_print_server#Setup_the_.5Bprinters.5D_share
> > > > Then the page you referred and use windows ACLs not posix ACLs
> > > 
> > > done
> > > 
> > > > 
> > > > I also take it you have given your users & groups uidNumber or
> > > > gidNumber attributes.
> > > 
> > > yes, this is a test-environment and i have given the unix-id to
> > > administrator, domain admins and domain users. 
> > 
> > Please remove the uidNumber from Administrator, you have just
> > turned it into a normal Unix user without the permisions (i.e.
> > 'root' users) it requires.
> 
> 
> If i remove the uidNumber from Administrator, then i can not connect
> to the shares as administrator. In this case, i have to add the
> administrator to /etc/passwd ?
> 
> heinz
> 

On a Samba AD DC Administrator is mapped to the 'root' user in
idmap.ldb, you can do the same on a domain member by adding this line
to smb.conf:

    username map = /usr/local/samba/etc/user.map

Then create the user.map containing this:

!root = SAMDOM\Administrator SAMDOM\administrator Administrator administrator

You will have to change the path to suit your setup and 'SAMDOM' to
your domain name.

If you do this, you will be able to connect to anything on the shares
and with roots permissions.

Rowland
 



More information about the samba mailing list