Vincent.Badier@alcatel.fr
2003-Jul-15 07:00 UTC
[Samba] Vijay - samba box not seen in browse list.
>Hi, > >I initially tried a RedHAt Linux 9.0 box to join in multiple domains, but >couldnt get it right. >Now I have two Win2K Domains A and B. >If I configure samba to be in Dmain A, I am able to see and browse thelinux>box without any problems. >But if I change the workgroup to Domain B I am not able to see the machine >in that lbrowse list and nor am I able to acces it using the Domain >Controller of Domain B. I am able to access it from machine which are not >there in Domain B. >Actually DOmian B just conatins the domain controller and nothing else. > >Below is output of testparm. >This is driving me crazy. I just need to access a folder from this domain >Controller B for some backup issues. >Please help. > >[global] >...>wins proxy = No >wins server >wins support = No Why not using wins? Declaring a wins server should help, shouldn't it? And why joining a domain while using "security = USER"? Regard's -- Vincent
Hi, Thnx for thr response. I donot have a Wins server in my network. Do you mean that I should make the Linux box act as Wins Server ? Can you please tell me what to change exactly so that I can check the same ? Regards, Vijay.> > > Why not using wins? Declaring a wins server should help, shouldn't it? > And why joining a domain while using "security = USER"? > > Regard's > > -- > Vincent > > >
Vincent.Badier@alcatel.fr
2003-Jul-15 07:18 UTC
[Samba] Vijay - samba box not seen in browse list.
>Hi, > >Thnx for thr response. >I donot have a Wins server in my network. Do you mean that I should makethe>Linux box act as Wins Server ? > >Can you please tell me what to change exactly so that I can check the same?> >Regards, >Vijay. > >> >> >> Why not using wins? Declaring a wins server should help, shouldn't it? >> And why joining a domain while using "security = USER"?Sorry, i didn't understood that you haven't any wins server on your network. So, to be sure to well understand : You don't have any PDC nor Domain Controler, have you? I such a case, i recommend to configure samba to act as a wins server and domain controler. As this, all client will be able to log on the domain and browse it. So you will have to enable such things as wins support = Yes domain master = Yes ect... Take a look to the smb.conf man page since it explain quite well all options. Regard's -- Vincent
Vincent.Badier@alcatel.fr
2003-Jul-15 08:27 UTC
[Samba] Vijay - samba box not seen in browse list.
>Hi, > >We have a PDC ( Win2K Domain Controller) without a >Wins server. > >But I still get he point, why other machines are able tosee it and notonly>the domain controller itself. > >Will enabling Wins solve the problem ? > >Regards, >Vijay.Well, i don't think i well understand exactly what is your problem. Firstly, you joined DomainA and all was working quite well. 1. What was your domain controler? w2K? wins server? Secondly, you changed the workgroup in you smb.conf. Did you joined explicitly the DomainB? This Domain controler is exactly configured as the first one? When you wrtie "other machines are able tosee it and not only the domain controller itself." Do you mean windows client? What domain do you browse? Is there any trust between domains? Regard's -- Vincent
Vincent.Badier@alcatel.fr
2003-Jul-15 11:06 UTC
[Samba] Vijay - samba box not seen in browse list.
>Hi >when you not understand security modes of samba i can not help you... >but i try >first remove errors from smb.conf replace: >interfaces = 192.168.0.229/24 >; not needed remote announce = 192.168.0.255 >local master = yes > >second create samba users and passwords if not have this in shell >useradd user1 >smbpasswd -a user1 >... userX > >If you need connect from w2k then try use connect as and type user1 and >user1pass in dialog or logon w2k as user1 with identic password as onlinux>smbpasswd entered. > >Bye.Shouldn't he configure also security = domain ? Doing this he doesn't have to identify himself as a diffrent user. Also, what look like logs when trying to connect? -- Vincent
> Without modifying any security parameters, I have changed the > following : interfaces = 192.168.0.229/24 ; not needed remote > announce = 192.168.0.255 local master = yes > > and created a user administrator onthe linux box with the > same passwd as that of the win2K server - using smbpasswd. > > I am still not able to browse/access thislinux box. >Can you connect from the very same linux box? Open a terminal and do a smbmount '\\thislinuxbox\myshare' /mnt/floppy -o username=a_valid_samba_username Does it work?>From the same command prompt dosmbclient -L thislinuxbox don't give any passwd and watch for Workgroup Master --------- ------- SOMEWKG PDC_NAME If the PDC_NAME is still the windows box your samba lost elections so the browse list is still in Redmond! ;-) Painfull question: are you allowed to reboot the PDC? :)
> > smbclient -L localhost gives the error : > > added interface ip=192.168.0.229 bcast=192.168.0.255 > nmask=255.255.255.0 error connecting to 127.0.0.1:139 > (Connection refused) error connecting to 127.0.0.1 > (Connection refused)netstat -nap | grep 139 Like this: [root@duron]# netstat -nap | grep 139 tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 31102/smbd tcp 0 0 193.338.203.231:139 193.338.203.231:53728 ESTABLISHED 2194/smbd tcp 0 0 193.338.203.231:53728 193.338.203.231:139 ESTABLISHED 2189/sshd As you can see there are some connections because I do a tunnel but the important part is the LISTEN / smbd line. How does the output of the command look in your case?> The same command given for the DomainB gives the same > error(withteh ip of the server )Let me guess: DomainB is Samba?! :->> but for DomainA ( NT > Server 4.0 ) it asks for a username and password. Why ?Because you haven't specify in the command line the password. man smbclient and look how to specify the password, that's not the ideea.> and mount -t smbfs ...................... /mnt/floppy gives > the error : Error connecting to 127.0.0.1 (Connection refused) > 10934: Connection to cvsbkup failed > SMB connection failed.Heck! Is there ANY smbd running on your machine? :-o