LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Samba Error! (https://www.linuxquestions.org/questions/linux-server-73/samba-error-540483/)

blackfish 03-25-2007 12:58 PM

Samba Error!
 
Hi,

I have to linux samba servers setup. One is a PDC and the other is a standard file server.

The problem i have is when i try and make the standard file server join the PDC i keep getting this error message

-----------------------------------------------------

[root@isoserver ~]# net rpc join MCKNET -U admin Password:
[2007/03/25 19:48:45, 0] utils/net_rpc_join.c:net_rpc_join_newstyle(319)
Error domain join verification (reused connection): NT_STATUS_ACCESS_DENIED

Unable to join domain MCKNET.

-----------------------------------------------------

Can anyone help me?

Many Thanks,

Blackfish

hob 03-25-2007 01:10 PM

It sounds stupid, but first check that the account you are using actually works. The simplest way is to login with "smbclient" from the server itself.

blackfish 03-25-2007 03:08 PM

tried smbclient

[root@isoserver ~]# smbclient -L NTHOSTSVR1 -U admin
Password:
Domain=[MCKNET] OS=[Unix] Server=[Samba 3.0.10-1.4E.9]

Sharename Type Comment
--------- ---- -------
print$ Disk Printer drivers
Primary Disk Primary i-bay
family Disk Family Store
system Disk Network System Share
IPC$ IPC IPC Service (SME Server)
ADMIN$ IPC IPC Service (SME Server)
admin Disk Home directory
Domain=[MCKNET] OS=[Unix] Server=[Samba 3.0.10-1.4E.9]

Server Comment
--------- -------
ISOSERVER SME Server
NTHOSTSVR1 SME Server
WSTATION1

Workgroup Master
--------- -------
MCKNET NTHOSTSVR1


im confused! :newbie: :cry:

this lets me login but i cant make the ISOSERVER join the domain hosted by NTHOSTSVR1

any help will be appreciated!!

Many Thanks,

BlackFish

Edit:

tried with a different account with admin privilages but still no luck

hob 03-25-2007 03:39 PM

OK, could you post the contents of the smb.conf file on the server?

blackfish 03-25-2007 05:18 PM

Here is the smb.conf on the PDC Server (NTHOSTSVR1)

[global]
dos charset = 850
unix charset = UTF8
display charset = ISO8859-1
workgroup = MCKNET
server string = SME Server
interfaces = 127.0.0.1, 192.168.92.63/255.255.255.0
passdb backend = smbpasswd:/etc/samba/smbpasswd
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
check password script = /sbin/e-smith/samba_check_password
unix password sync = Yes
log file = /var/log/samba/log.%m
max log size = 50
smb ports = 139
name resolve order = wins lmhosts bcast
deadtime = 10080
printcap name = /etc/printcap
add machine script = /sbin/e-smith/signal-event machine-account-create '%u'
logon script = netlogon.bat
logon path = \\%L\Profiles\%U
logon home = \\%L\%U\._winprofile
domain logons = Yes
os level = 65
domain master = Yes
dns proxy = No
wins support = Yes
admin users = admin, dominic, tina, wayne, charlotte
printer admin = admin
hosts allow = 127.0.0.1, 192.168.92.0/255.255.255.0
printing = lprng
print command = /usr/bin/lpr -b -h -r -P%p %s
lpq command = lpq -P'%p'
lprm command = lprm -P'%p' %j
lppause command = lpc hold '%p' %j
lpresume command = lpc release '%p' %j
queuepause command = lpc stop '%p'
queueresume command = lpc start '%p'
case sensitive = No
strict locking = No

[homes]
comment = Home directory
path = /home/e-smith/files/users/%S/home
read only = No
create mask = 0660
force create mode = 0660
directory mask = 0770
force directory mode = 0770
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
use client driver = Yes
browseable = No

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

[netlogon]
comment = Network Logon Service
path = /home/e-smith/files/samba/netlogon
read only = No
guest ok = Yes
browseable = No

[print$]
comment = Printer drivers
path = /home/e-smith/files/samba/printers
guest ok = Yes
use client driver = Yes

[Primary]
comment = Primary i-bay
path = /home/e-smith/files/ibays/Primary
read only = No
create mask = 0640
inherit permissions = Yes

[family]
comment = Family Store
path = /home/e-smith/files/ibays/family/files
read only = No
create mask = 0640
inherit permissions = Yes

[system]
comment = Network System Share
path = /home/e-smith/files/ibays/system/files
read only = No
create mask = 0640
inherit permissions = Yes
-----------------------------------------------------

Here is the smb.conf on the client server (ISOSERVER)
[global]
dos charset = 850
unix charset = UTF8
display charset = ISO8859-1
workgroup = MCKNET
server string = SME Server
interfaces = 127.0.0.1, 192.168.92.39/255.255.255.0
security = DOMAIN
password server = NTHOSTSVR1
pid directory = /var/run
passdb backend = smbpasswd:/etc/samba/smbpasswd
guest account = public
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
check password script = /sbin/e-smith/samba_check_password
unix password sync = Yes
log file = /var/log/samba/log.%m
max log size = 50
smb ports = 139
name resolve order = wins lmhosts bcast
deadtime = 10080
printcap name = /etc/printcap
add machine script = /sbin/e-smith/signal-event machine-account-create '%u'
domain master = No
dns proxy = No
wins server = 192.168.92.63
admin users = admin
printer admin = admin
hosts allow = 127.0.0.1, 192.168.92.0/255.255.255.0
printing = lprng
print command = /usr/bin/lpr -b -h -r -P%p %s
lpq command = lpq -P'%p'
lprm command = lprm -P'%p' %j
lppause command = lpc hold '%p' %j
lpresume command = lpc release '%p' %j
queuepause command = lpc stop '%p'
queueresume command = lpc start '%p'
case sensitive = No
strict locking = No

[homes]
comment = Home directory
path = /home/e-smith/files/users/%S/home
read only = No
create mask = 0660
force create mode = 0660
directory mask = 0770
force directory mode = 0770
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
use client driver = Yes
browseable = No

[print$]
comment = Printer drivers
path = /home/e-smith/files/samba/printers
guest ok = Yes
use client driver = Yes

[Primary]
comment = Primary i-bay
path = /home/e-smith/files/ibays/Primary
read only = No
create mask = 0640
inherit permissions = Yes
-----------------------------------------------------

Both systems are running SME Server 7.1 but i editted the smb.conf files to try and set this up using the method on the SME Server Manual.

Hope that helps you to help me

Many Thanks,

BlackFish

blackfish 03-31-2007 04:04 PM

fixed it, forgot to run smbpasswd -a -m ISOSERVER$ on the PDC

opps, but we all make mistakes lol


All times are GMT -5. The time now is 07:40 AM.