Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
I configured Samba on RH7.2 and its is working fine for Windows 95 and 98 clients.
The problem which i am facing is that i am unable to make XP machines as the member of the samba domain.
3. Create a user on the Samba server than has the ability to join the Samba domain.
4. Create a machine account on the Samba server. More about this is in the Samba PDC HOWTO.
5. In XP pull up a command prompt and type "net use * /d" this will disconnect the XP machine from ALL shares on the Samba server, this is required.
6. Right click on the My Computer Icon. > Properties > Computer Name > Change > Domain, and Enter the domain name to join, It will prompt you for a username/password.
7. Reboot XP
8. Go into your registry and Change the following Value to "0" instead of "1". Such as: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\netlogon\parameters\ "RequireSignOrSeal"=dword:00000000
9. Reboot
10. Login to your Samba PDC
disable the Domain member: Digitally encrypt or sign secure channel data (always). You can find it somewhere (right click my computer) -> Computer Managament:> Local Security Policy-> Local Policies -> Security Options
this is all assuming you have samba set up right to be PDC.
As per ur instructions i checked following things.
1. i checked Samba version. which is samba-2.2.1a-4.
2. Client is XP professional.
3. I did all the registery settings as you said and rebooted xp Machine.
4. I tried with "root" user to make the XP client as the member of my samba. No doubt it prompt for user name and password but is not authanticating. Massage stating " Bad user name and password" is displayed.
5. I tried with any other samba user to make the XP client as the member of my samba. Then message stating " Access is denied " is displayed.
Here i am little bit confused, whether root login will be able to put the xp client as the member of samba
Kindly Guide which appropriate user with what rights is required and how to Create a machine account on the Samba server
please send me your samba configuration file and i can tell you the changes to make. please make backup of your samba configuration file
at prompt type:
cp /etc/samba/smb.conf /etc/samba/smb.conf.backup
this is in case something goes wrong.
do you have the following in the file /etc/samba/smb.conf under global section:
netbios name = linuxmachinename
domain admin group = @wheel
domain logons = Yes
os level = 99
preferred master = True
domain master = True
local master = True
and the following under shares:
[netlogon]
##Store all Samba PDC overhead data in the directory
## /home/netlogon (or whatever you desire)
path = /home/netlogon
write list = root
guest ok = Yes
[profiles]
## Store user profiles in this directory
path = /home/ntprofile
read only = No
create mask = 0600
directory mask = 0700
guest ok = Yes
browseable = No
also, do you have a samba user account set up for the root user?
command at bash prompt:
smbpasswd -a root
this will bring up prompt for root samba passwd
i highly suggest yo umake this different than the normal root password
also, the commands for adding a machine account are as follows:
first command, if you haven't done so already is to add a machine group. i will put a # from now on in front of any line that is a command to type at prompt.
machinename$ being the netbios name of the machine you are adding, so if your domain is called domain, instead of putting machinename.domain just use machinename$ for this. be sure to put the $ at the end of the machinename.
#passwd -l machinename$
this will lock the machine account, the l in -l is a small L.
now add the machine as a samba account.
#smbpasswd -a -m machinename
i don't think you need the $ here. try without. it should say, even though you left out the $:
added machinename$
if doesn't work, then add the $ to the smbpasswd command above. it should definitely work then. now just to be certain the account is enabled.
#smbpasswd -e machinename$
make sure you restart samba to reread the config file before trying to join the machine to the domain.
#service smb restart
now try to add the xp machine to the domain. i may have forgot something. please let me know what happens.
good luck.
and do use the root samba password you created above when prompted for it when you try to join the domain.
once we get you joined i can tell you some other tricks to make things easier with profiles and logon scripts and so forth.
we will get this have no fear. it has been some time since i got mine going, but we will. then it will be a breeze.
well, for one, how do you have the logon script and profiles directory set up. i used a method similar to this. i have had a few beers so any questions or need better explanation let me know. okay, in samba i believe %g means teh group the use is in. so you can make users a memeber of the users group, then you can make a logon script for the wheel group (administrative group) and users group (regular users). so make a users folder and a wheel folder in the profiles directory. the logon xcript is then set to %g/logon.cmd. this will make it easier to make logon scripts for the different user types. for mapping folders.
anyway, for making joining the domain easier, there is an add user script. need to find that for you, and i have had not much success with it. here is waht i would do.
i made a script called newuser.
and a script called newpc.
it ask for computer name, send the computer name to memory with the $ added by the script, then it runs all the commands for you and adds to machine group, etc. this is for the linux bo0x of course. then run the join domain stuff with winxp
also, much easier to join domain if computer is initially member of a workgroup that has not the same name, unless do it on install, then not member of anythiign so don't matter.
anyway, if don't know know scripting, can find my scripts somewhere. haven't used windows for some time so will have to look. but will. let me know.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.