View previous topic :: View next topic |
Author |
Message |
ferrarif5 Apprentice
Joined: 06 Sep 2003 Posts: 211 Location: Manchester, UK
|
Posted: Sat Nov 15, 2003 5:11 pm Post subject: Domains & Samba PDC |
|
|
Hi, I've been trying to get my GentooBox to become my PDC but up until now I've had very little success, I've already searched the boards for info but couldn't solve my problem.
Other computers on my network can see my Linux box and access shares no problem and when I log in as root in konsole and then enter
"smbclient -L /Gentoobox/Shared" it prompts me for a password which I can then enter and it displays my shares.
I've also ran testparm which came back saying services file was ok and the server role was domain_PDC.
However when I go to my Windows PC (disabled "requiresignorseal"=dword:00000000 "signsecurechannel"=dword:00000000) I try changing it to my domain but it fails. The username/passwd box appears and I enter root + password and it says it can't find the username. I then enter a username used to view some shares it says it's an unknown username or bad password.
I already added the users to the samba using smbpasswd -a for root and other users and used smbpasswd -e <<username>> just incase they were disabled.
Be grateful if anyone could sort out my problem, am hoping it's something simple .
Below is my smb.conf file.
Code: |
[global]
workgroup = Linux
netbios name = GentooBox
server string = SambaShares in Linux
security = user
encrypt passwords = yes
smb passwd file = /etc/samba/private/smbpasswd
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *new*password* %n\n *successfully*
passdb backend = smbpasswd
unix password sync = yes
username map = /etc/samba/smbusers
os level = 33
preferred master = yes
local master = yes
domain logons = yes
domain master = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
wins support = no
dns proxy = no
[netlogon]
path = /var/lib/samba/netlogon
comment = Network Logon Service
read only = yes
write list = ntadmin
guest ok = yes
browseable = no
[music]
path = /home/magicmike/Documents/Music
comment = Music
public = yes
writeable = yes
valid users = magicmike chris
[shared]
comment = Web Folder
path = /home/samba/htdocs
public = yes
writeable = yes
|
_________________ Asus P6X58D-E Mobo
Intel Core i7 920
18GB Corsair DDR3
User:335876 | Screenshot |
|
Back to top |
|
|
ruomad Tux's lil' helper
Joined: 17 Apr 2003 Posts: 93
|
Posted: Sat Nov 15, 2003 5:43 pm Post subject: |
|
|
should'nt you try : security=domain ? |
|
Back to top |
|
|
ferrarif5 Apprentice
Joined: 06 Sep 2003 Posts: 211 Location: Manchester, UK
|
Posted: Sat Nov 15, 2003 6:05 pm Post subject: |
|
|
That didn't work, I didn't set that to begin with because if I remember it is used when it is a domain member not a PDC. _________________ Asus P6X58D-E Mobo
Intel Core i7 920
18GB Corsair DDR3
User:335876 | Screenshot |
|
Back to top |
|
|
ruomad Tux's lil' helper
Joined: 17 Apr 2003 Posts: 93
|
Posted: Sat Nov 15, 2003 6:19 pm Post subject: |
|
|
did you add the machine first as user (netbios name +$) ? |
|
Back to top |
|
|
ferrarif5 Apprentice
Joined: 06 Sep 2003 Posts: 211 Location: Manchester, UK
|
Posted: Sat Nov 15, 2003 6:44 pm Post subject: |
|
|
I didn't add the machine, when I do smbpasswd -r mrwiggles$
I get prompted for a password (root?) and then a new password, then after I entered those I get
Quote: | unable to find an IP address for machine mrwiggles$.
Failed to modify password entry for user root
|
_________________ Asus P6X58D-E Mobo
Intel Core i7 920
18GB Corsair DDR3
User:335876 | Screenshot |
|
Back to top |
|
|
tam1138 Tux's lil' helper
Joined: 28 Oct 2003 Posts: 103
|
Posted: Sun Nov 16, 2003 12:58 am Post subject: |
|
|
To add a machine account, use the "-m" option of smbpasswd:
Code: | # smbpasswd -a -m <machinename>$ |
Note that this has nothing at all to do with the machine's DNS name. NetBIOS is a completely different namespace. And, just so I don't lapse into profane editorializing, I'll stop there. |
|
Back to top |
|
|
ferrarif5 Apprentice
Joined: 06 Sep 2003 Posts: 211 Location: Manchester, UK
|
Posted: Sun Nov 16, 2003 1:37 am Post subject: |
|
|
As soon as I execute that command I get
Quote: | smbpasswd -a -m mrwiggles
Failed initialise SAM_ACCOUNT for user mrwiggles$.
Failed to modify password entry for user mrwiggles$
|
_________________ Asus P6X58D-E Mobo
Intel Core i7 920
18GB Corsair DDR3
User:335876 | Screenshot |
|
Back to top |
|
|
tam1138 Tux's lil' helper
Joined: 28 Oct 2003 Posts: 103
|
Posted: Sun Nov 16, 2003 3:56 am Post subject: |
|
|
Are you root? |
|
Back to top |
|
|
ferrarif5 Apprentice
Joined: 06 Sep 2003 Posts: 211 Location: Manchester, UK
|
Posted: Sun Nov 16, 2003 7:40 pm Post subject: |
|
|
yeah, used the SU command _________________ Asus P6X58D-E Mobo
Intel Core i7 920
18GB Corsair DDR3
User:335876 | Screenshot |
|
Back to top |
|
|
tam1138 Tux's lil' helper
Joined: 28 Oct 2003 Posts: 103
|
Posted: Sun Nov 16, 2003 11:54 pm Post subject: |
|
|
Have you added "mrwiggles$" as a UNIX user as well? Remember that all samba users need to have identically-named UNIX accounts (ie, in /etc/passwd). |
|
Back to top |
|
|
ferrarif5 Apprentice
Joined: 06 Sep 2003 Posts: 211 Location: Manchester, UK
|
Posted: Mon Nov 17, 2003 11:00 pm Post subject: |
|
|
thanks alot totally forgot about the UNIX usernames, _________________ Asus P6X58D-E Mobo
Intel Core i7 920
18GB Corsair DDR3
User:335876 | Screenshot |
|
Back to top |
|
|
|