Greetings : I've googled for this, but only found one article, and I'm not even sure if that is the dealing with my problem. I have a linux server running 3.0.2a-r1 as a PDC. Following the guide found here http://www.oreilly.com/catalog/samba2/book/ch04.html and am having problems with the root user not being recognized. I have added the root user using smbpasswd -a root, and have verified that the account exists in the smbpasswd file. I have restarted samba after the changes, but it still will not recognize root as a valid user (when trying to add a computer to the domain). smb.conf [global] workgroup = kuwaitnet netbios name = sandbox server string = Sandbox Linux Server socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192 os level = 65 preferred master = yes local master = yes domain master = yes domain logons = yes security = user encrypt passwords = yes log file = /var/log/samba/log.%m log level = 5 max log size = 50 hosts allow = 127.0.0.1 192.168.0.0/255.255.255.0 logon home = \\%L\%U\ logon drive = H: logon path = \\%L\profiles\%U logon script = netlogon.bat smb passwd file = /etc/samba/private/smbpasswd time server = yes wins support = yes name resolve order = lmhosts hosts bcast domain admin group = @root add user script = /usr/sbin/useradd -d /dev/null -g 501 -s /bin/false -M %u Can anyone give me any hints? Does this have to do with the registery hacks?
Burhan Khalid wrote:> Greetings : > > I've googled for this, but only found one article, and I'm not even > sure if that is the dealing with my problem. > > I have a linux server running 3.0.2a-r1 as a PDC. > > Following the guide found here > http://www.oreilly.com/catalog/samba2/book/ch04.html and am having > problems with the root user not being recognized. > > I have added the root user using smbpasswd -a root, and have verified > that the account exists in the smbpasswd file. I have restarted samba > after the changes, but it still will not recognize root as a valid user > (when trying to add a computer to the domain).Update: I added my normal user using smbpasswd -a, and then tried to add the client to the PDC and got "Access is denied", which is what I'd expect. However, it still gives unrecognized user for root :(
Matthew J. DiBattista wrote:> What is the error message you are getting? >Account does not exist> Why do you want root access thru samba?I do *not* want root access through samba. I want to have samba create machines accounts automatically for new clients that are joining the domain. According to all documentation that I have read (regardless of samba version), there needs to be a "root" account in samba, which is the equivalent of the Domain Administrator in Windows. This is the only account that is authorized to add new machines to the domain. I created this account using smbpasswd -a root, and gave it a password. For what its worth, if the machine account has been manually created in Samba, then the initial logon with root works. It just won't work if the machine account does not exist. If the machine account does not exist, it will give "There was an error joining the domain mydomain, the specified account could not be found". However, if I ssh into the server and create the machine account manually, then the same login (root, with the smbpasswd password) works to add the machine. Hopefully this clears things up a bit.> Why not just include yourself in the root and wheel group.My regular user account on the linux server is in wheel group. [trimmed rest]