LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 03-25-2007, 12:58 PM   #1
blackfish
Member
 
Registered: May 2006
Location: England
Distribution: CentOS, Ubuntu Server, Untangle, pfSense
Posts: 78

Rep: Reputation: 15
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
 
Old 03-25-2007, 01:10 PM   #2
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
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.
 
Old 03-25-2007, 03:08 PM   #3
blackfish
Member
 
Registered: May 2006
Location: England
Distribution: CentOS, Ubuntu Server, Untangle, pfSense
Posts: 78

Original Poster
Rep: Reputation: 15
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!

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

Last edited by blackfish; 03-25-2007 at 03:21 PM.
 
Old 03-25-2007, 03:39 PM   #4
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
OK, could you post the contents of the smb.conf file on the server?
 
Old 03-25-2007, 05:18 PM   #5
blackfish
Member
 
Registered: May 2006
Location: England
Distribution: CentOS, Ubuntu Server, Untangle, pfSense
Posts: 78

Original Poster
Rep: Reputation: 15
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
 
Old 03-31-2007, 04:04 PM   #6
blackfish
Member
 
Registered: May 2006
Location: England
Distribution: CentOS, Ubuntu Server, Untangle, pfSense
Posts: 78

Original Poster
Rep: Reputation: 15
fixed it, forgot to run smbpasswd -a -m ISOSERVER$ on the PDC

opps, but we all make mistakes lol
 
  


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 error remyforbes777 Linux - General 1 01-26-2007 02:14 PM
Samba OS X to Linux Samba file share error ttoomey Linux - Software 1 08-16-2005 10:12 AM
samba error! marlor Linux - Networking 2 12-31-2004 03:33 PM
samba error props666999 Slackware 16 12-20-2004 08:29 AM
Samba error lorio Linux - Networking 4 09-25-2002 07:09 AM


All times are GMT -5. The time now is 08:35 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration