LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-07-2006, 07:40 AM   #1
mustafasattar
LQ Newbie
 
Registered: Feb 2004
Location: pakistan
Distribution: red hat
Posts: 5

Rep: Reputation: 0
samba as PDC Problem


i am configuring samba(3.0.23c.2) as a PDC on Fedora Core 6. i made changes in smb.conf
file which r shown as under
[global]
workgroup = LINUXLABSERVER
netbios name = LINUXLABMAINSERVER
server string = Linux LabServer
log level = 2
log file = /var/log/samba/%m.log
max log size = 50
add machine script = /usr/sbin/adduser -d /dev/null -g samba-clients -s /bin/false -M %u
logon script = %U.bat
logon path = \\%L\Profiles\%U
domain logons = Yes
os level = 64
preferred master = Yes
domain master = Yes
dns proxy = No
wins support = Yes
hosts allow = 127.0.0.1, 192.168.0.1/255.255.255.0
cups options = raw

[homes]
comment = Home Directories
create mask = 0644
browseable = No

[netlogon]
comment = Network Logon Service
path = /home/samba/netlogon
guest ok = Yes

[Profiles]
path = /home/samba/profiles
read only = No
create mask = 0600
directory mask = 0700
browseable = No

[printers]
comment = All Printers
path = /usr/spool/samba
printable = Yes
browseable = No
i have also amke amchine trust account and local linux users and properly added in the smbpasswd.

the problem is when i try to connect a windows XP pro machine then the following error apears

"DOMAIN CONTROLLER FOR LINUXSERVER(domain name) COULD NOT BE CONTACTED".
is there any one who could tell me the right way.
 
Old 12-07-2006, 09:40 AM   #2
fordeck
Member
 
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
Quote:
hosts allow = 127.0.0.1, 192.168.0.1/255.255.255.0
I don't know if this will fix your problem but you might want to change the above to:

Code:
hosts allow = 127. 192.168.0.
leave out the comma and by using "192.168.0." you allow machines on the 192.168.0.0 network.
 
Old 12-08-2006, 05:44 AM   #3
mustafasattar
LQ Newbie
 
Registered: Feb 2004
Location: pakistan
Distribution: red hat
Posts: 5

Original Poster
Rep: Reputation: 0
sorry it's not working. i try the smbclient tool to connect to the windows machine i-e
[root@linuxlabserver ~]# smbclient -L w01(machine name)
Password:
Domain=[W01] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

Sharename Type Comment
--------- ---- -------
E$ Disk Default share
IPC$ IPC Remote IPC
D$ Disk Default share
print$ Disk Printer Drivers
Quran (H) Disk
G$ Disk Default share
F$ Disk Default share
ADMIN$ Disk Remote Admin
C$ Disk Default share
Domain=[W01] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

Server Comment
--------- -------

Workgroup Master
--------- -------
if i ma correct then this iformation shows that the samba configuration is ok & machine is added successfuly.
know why windows give me the error.

Last edited by mustafasattar; 12-08-2006 at 06:04 AM.
 
Old 12-08-2006, 07:49 AM   #4
fordeck
Member
 
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
I'm not sure what your saying here.

Quote:
sorry it's not working. i try the smbclient tool to connect to the windows machine i-e
[root@linuxlabserver ~]# smbclient -L w01(machine name)
It appears to me that it did what it is supposed to do. The "-L" parameter is used to list the services of in this case w01. Which it did. If you want to actually mount a windows share on your linux box then you could try this:

Code:
mkdir /mnt/smbremote
The above command will create a directory to use as your mount point.

Code:
 smbmount //windows-ip-address-here/<share-name-here> /mnt/smbremote/ -o username=<windows-username-here
Replace windows-ip-address-here with the ip address of your windows machine,replace <share-name-here> with a valid share name. All I saw in your post were administrative shares. So for example you could use "C$" as the share name. But keep in mind depending on the rights your user has you may need to use administrator as the username and provide administrators password. So an example command would be:

Code:
smbmount //w01/C$ /mnt/smbremote/ -o username=administrator
This should prompt you for w01's administrator password. If it doesn't then try replacing w01 with the ip address of w01.

If all worked fine then you should be able to issue the following command:

Code:
df -h
and see the /mnt/smbremote in the results. Likewise you could cd /mnt/smbremote and see the contents of the C: drive on the windows machine.

If you want to mount a samba share on the windows box you would:

Code:
net use i: \\<ip-address-samba-here>\<sharename-here> /user:<samba-username-here>
Let me know if this worked?

Regards,
Fordeck

Last edited by fordeck; 12-08-2006 at 07:51 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
samba pdc problem ssilayaraja Linux - Networking 3 12-08-2006 03:36 AM
samba 3 problem - samba PDC can not join to the domain ananthak Linux - Networking 1 05-21-2006 10:39 AM
Samba as PDC problem jrmontg Linux - Networking 7 07-19-2005 02:53 PM
Samba PDC Problem rshooper Linux - Software 3 09-21-2004 05:33 PM
Samba as PDC problem raven Linux - Networking 2 06-20-2003 05:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration