Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a problem. I like to login on a Samba Server with my Ubuntu 10.04/11.04 PC. On my Samba Server there are some accounts with data, but I couldn't connect to it. I have done this:

aptitude -y install winbind smbclient
mv /etc/samba/smb.conf /etc/samba/smb.conf.original
vim /etc/samba/smb.conf

Contents of the file:

workgroup = LAN
idmap uid = 10000-20000
idmap gid = 10000-20000
template shell = /bin/bash
template homedir = /home/%D/%U
winbind enum users = yes
winbind enum groups = yes
winbind cache time = 10
winbind separator = +
winbind use default domain = yes
security = domain
password server = *
encrypt passwords = yes
domain master = no
local master = no
preferred master = no
os level = 0

Then I have done this:

/etc/init.d/winbind restart
net rpc join -S -U Administrator 
wbinfo -u //no result
vim /etc/nsswitch.conf

I wrote into the file nsswitch.conf:

passwd:         compat winbind
group:          compat winbind
shadow:         compat

After that I did this:

/etc/init.d/winbind restart
vim /etc/security/group.conf

I edited the file group.conf:

* ; * ; * ; Al0000-2400 ; floppy, audio, cdrom, video, usb, plugdev, users

vim /etc/pam.d/common-auth
auth required use_first_pass 
auth sufficient
auth sufficient nullok_secure use_first_pass
auth required

vim /etc/pam.d/sudo
auth sufficient
auth sufficient use_first_pass
auth required
@include common-account

And after I have done all this, I get the error message: "No logon Server", when I try to login with my account from the Samba Server. But if I try to login with my local account I get the same message but it works.

share|improve this question

You have not configured your server as a PDC - for a DC you need to set "domain master = yes". The setup of winbind and use of various other parameters is also not necessary on a DC.

share|improve this answer

You need to set security to user. If using as a primary domain controller, set domain logons, domain master, local master, and preferred master to yes.

Also, set os level to anything higher than 32.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.