LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   samba as PDC Problem (https://www.linuxquestions.org/questions/linux-networking-3/samba-as-pdc-problem-508178/)

mustafasattar 12-07-2006 07:40 AM

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.

fordeck 12-07-2006 09:40 AM

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.

mustafasattar 12-08-2006 05:44 AM

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.

fordeck 12-08-2006 07:49 AM

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


All times are GMT -5. The time now is 06:20 PM.