Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
.. and followed the "Samba as Primary Domain Controller" part.
Still, I get "No DNS Name" found error when attempting to connect to the newly established PDC hosted on my Mandrake 9.2 machine. I have 2 WinXP boxes that are trying to connect. If Samba is set to Workgroup, I can see the icon in network neighborhood, but "not access this network resource due to restrictions .. blah-blah".
Any idea why Samba is failing to broadcast a valid DNS domain? All users seem to be set up fine!
Also - I am running all this behind an SMC VBR7004 Router, in which I have disabled any DHCP server functions to allow Samba to do its thing. No luck ..
There is no need to disable DHCP on the router. It could help if u pasted your smb.conf
BTW You need to apply a registry hack on XP machines if u want them to be able to log to a domain. These .reg files come with samba package, just execute them on the XP machine and reboot.
# === shares ===
...
[netlogon]
path = /home/netlogon
read only = yes
write list = @admim
--------------------------------------
Even after the XP registry hack, I still get "access is denied" from the XP box upon attempting to join domain. I have added many users, all set to root access, including root itself!, but still "access is denied"
The automated approach for machine accounts is to add the following line to the /etc/smb.conf
( Note: that is supposed to be all one line )
add user script = /usr/sbin/useradd -d /dev/null -g machines -s /bin/false -M %u
In some cases, the Windows machine refuses to join the Samba domain. Then the manual approach is needed also. Use the following commands while logged in as the root user.
Note: machine_name is the computer name which is trying to join.
Add the user accounts ( Fred in my case ) and set the passwords
useradd fred
passwd fred
New password:
Retype password:
smbpasswd -a fred
New SMB password:
Retype SMB password:
***************************************************************
This part is very important for joining the domain from Windows.
When you get to the part on a Windows computer where it asks for the person who is authorized to join computers to the domain, I use the root user and password.
Give the root / admin user a samba password!!
smbpasswd -a root
New SMB password:
Retype SMB password:
Below is my smb.conf which works very nicely with those instructions.
_______________________________________________________________________
[global]
workgroup = mydomain.com
server string = Samba Server
hosts allow = 192.168.0. 192.168.1. 127.
printcap name = /etc/printcap
load printers = yes
printing = cups
log file = /var/log/samba/%m.log
max log size = 50
security = user
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
[homes]
comment = Home Directories
browseable = no
writable = yes
valid users = %S
create mode = 0664
directory mode = 0775
# If you want users samba doesn't recognize to be mapped to a guest user
; map to guest = bad user
[netlogon]
comment = Network Logon Service
path = /home/netlogon
read only = yes
browseable = no
write list = fred
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
# Set public = yes to allow user 'guest account' to print
guest ok = no
writable = no
printable = yes
b) Use the Registry Editor and edit the
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System\CompatibleRUPSecurity to have the DWORD value of 1 <-- couldn't find this key, so I skipped it ...
3) Use the Group Policy Editor (gpedit.msc) and enable "Computer Configuration\Administrative Templates\System\User Profiles\Do not check for user ownership of Roaming Profile Folders".
4) Go to MyComputer right click Properties. Go to Change and click on Domain and enter the domain-name you want to join. When joining the domain for the First time enter userid as root and give the samba password. Make sure there is an entry for the root in the smbpasswd (samba password) file.
5) Reboot and then the changes will be effective.
------------------------
Is this the error, or my smb.conf file, or my users? I have followed the IBM tutorial exactly ..
roaming profile with samba as pdc & windows as client
currently i m working on roaming profile where linux is the server & windows is the client ....i m implementing it using samba as pdc my linux version is 2.6.27.5-117.fc10.x86_64
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.