[Samba] Adding machine to domain fails - check permissions? (ldap)
Eduard Witteveen
eduard at nergens.org
Fri Aug 19 17:04:54 GMT 2005
On Sun, 2005-08-14 at 12:02 +0200, Eduard Witteveen wrote:
> Eduard Witteveen wrote:
>
> >> Error: modifications require authentication at
> >> /usr/share/perl5/smbldap_tools.pm line 891, <DATA> line 283.
> >> [2005/08/11 16:46:54, 0]
> >> rpc_server/srv_samr_nt.c:_samr_create_user(2324)
> >> _samr_create_user: Running the command `/usr/sbin/smbldap-useradd -w
> >> "eduard-laptop$"' gave 127
I changed the add machine script into 'set
> /tmp/user.txt; /usr/sbin/smbldap-useradd -w "%u"'. This /tmp/user.txt
contains a lot of information,.. but what really wondered me was the
following part:
...
UID=65534
USER=root
...
(where one would expect uid=0, since the uid of administrator(user in
ldap) is 0)
When i do this on the commandline, the administrator has a UID of 0
hawarit at pdc:~$ sudo -u Administrator bash
root at pdc:~# set | grep UID=0
EUID=0
UID=0
How can i let the add machine script run with UID = 0?
More information about the samba
mailing list