LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 06-13-2009, 05:31 AM   #1
metalenkist
Member
 
Registered: Aug 2005
Distribution: OpenSuse 11.1
Posts: 36

Rep: Reputation: 15
Question Samba and trust accounts


Hey all, I got a really annoying problem with and you guys just rock and hopefully can help me solve this problem.

I'm trying to set up samba as a PDC, I did the whole smb config thingy, I added samba users and machines but still it won't work I get this really annoying error:
Quote:
cynthia:~ # net join -S CYNTHIA -Uweemen%justanotherpassword
[2009/06/13 12:05:01, 0] utils/net_rpc_join.c:net_rpc_join_newstyle(349)
error setting trust account password: NT_STATUS_ACCESS_DENIED
Unable to join domain CYNTHIA.
This works well:
Quote:
cynthia:~ # net join -S CYNTHIA -Uroot%nottherealrootpassword
Joined domain CYNTHIA.
what is going wrong here? If I need to post additional info just let me know!

Already thanks in advance

Leon

I posted my smb.conf below
Code:
# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
# Date: 2008-08-28
[global]
	log level = 3
	netbios name= CYNTHIA
	include = /etc/samba/dhcp.conf
	logon drive = P:
	workgroup = CYNTHIA
	logon path = \\%L\profiles\.msprofile
	os level = 99
	map to guest = Bad User
	encrypt passwords = yes
	usershare allow guests = Yes
	logon home = \\%L\%U\.9xprofile
	#printing = cups
	#printcap name = cups
	#printcap cache time = 750
	#cups options = raw
	
	time server = yes
	domain master = yes
	local master = yes
	#preferred master = yes
	username map = /etc/samba/smbusers
	admin users = root
	domain logons = yes
	security = domain
	add machine script = /usr/sbin/useradd -g 100 -d /dev/null -s /bin/false %u
[netlogon]
	comment = Net Logon Service
	path = /usr/local/netlogon
	writable = no
	browsable = no

[profiles]
	path = /home/profiles
	browsable = no
	writable = yes
	create mask = 0600
	directory mask = 0700

[Home]
	comment = Home directory
	writable = yes
	veto files = /aquota.user/groups/shares/
	path = /home/%U
	inherit acls = Yes


[Shares]
	comment = Public shares
	writeable = yes
	path = /shares

[Projects]
	comment = Project sources
	writeable = yes
	user = weemen
	path = /projects
	write list = weemen
	#only user = yes

[Webserver]
	writeable = yes
	path = /srv/www/htdocs/
	write list = weemen
	#only user = yes
	comment = Webserver Cynthia
	user = weemen
	allow hosts = 192.168.0.3
 
Old 06-15-2009, 05:21 AM   #2
chitambira
Member
 
Registered: Oct 2008
Location: Online
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 51
you need root/admin privileges to join a machine to the domain. apparently it seens user weemen does not have such privileges.
 
Old 06-16-2009, 06:57 AM   #3
metalenkist
Member
 
Registered: Aug 2005
Distribution: OpenSuse 11.1
Posts: 36

Original Poster
Rep: Reputation: 15
Hey Chitambira, thnx a lot for the help unfortunately I did't help me

I have user weemen placed in the username map = /etc/samba/smbusers where the root user also is.
This "net join -S CYNTHIA -Uweemen%justanotherpassword" works now.

After that I tried it in Windows but then I got my trust account error back (even with root).

Did I misunderstood something? Is there a way to add a machine manual to the domain and is it possible
to get a confirmation that the machine really joined the domain

oh and forgot to tell that my laptop runs on Windows 7. That might be important to know.
 
Old 06-18-2009, 02:45 PM   #4
metalenkist
Member
 
Registered: Aug 2005
Distribution: OpenSuse 11.1
Posts: 36

Original Poster
Rep: Reputation: 15
I've tried on a Win XP box as well it allso didn't work there

I'm getting quite insane now.

I tested my config with testparm and there were no serious issues with it.
I added wins support (which got me the rid of some other error: "there are currently no logon servers available to service the logon request"

I'm really getting frustrated now, does anyone have any ideas to test things and get my problem solved?

thnx in advance
 
Old 06-18-2009, 04:06 PM   #5
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
If you are using the RC for Windows 7, I think you are stuffed.

I'll see if I can find the posts in the samba mailing list for this one, and post back.
 
Old 06-18-2009, 04:10 PM   #6
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Read this thread http://lists.samba.org/archive/samba...ay/148052.html
 
Old 06-21-2009, 06:16 AM   #7
metalenkist
Member
 
Registered: Aug 2005
Distribution: OpenSuse 11.1
Posts: 36

Original Poster
Rep: Reputation: 15
Sorry for my late response. I got ill the last few days but ehmmmm...

...w00tZ0r5, it works

I already did the registery changes but apperently I didn't check my version well.
After I installed the new version (3.3.4) and making a new smb.conf all my problems disappeared
Somehow it remains a mystery for me why my old XP laptop didn't work on the old version but that
doensn't matter anymore

Thank you very much all!!
 
  


Reply



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 BDC and trust relationship mozilla Linux - Networking 0 08-01-2007 04:29 AM
samba accounts/ unix accounts Buzz88 Linux - Newbie 3 09-25-2005 08:16 AM
samba migration trust accounts kcourser Linux - Software 1 01-13-2004 01:56 PM
LDAP 2.1.23 - Samba 3.0.0 - trust account problems klnasveschuk Linux - Software 1 11-20-2003 09:47 PM
Trust relationship using SAMBA in Redhat Linux 7.2 dibakar Linux - Networking 5 02-22-2003 12:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:49 PM.

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