Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Domains & Samba PDC
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ferrarif5
Apprentice
Apprentice


Joined: 06 Sep 2003
Posts: 211
Location: Manchester, UK

PostPosted: Sat Nov 15, 2003 5:11 pm    Post subject: Domains & Samba PDC Reply with quote

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
View user's profile Send private message
ruomad
Tux's lil' helper
Tux's lil' helper


Joined: 17 Apr 2003
Posts: 93

PostPosted: Sat Nov 15, 2003 5:43 pm    Post subject: Reply with quote

should'nt you try : security=domain ?
Back to top
View user's profile Send private message
ferrarif5
Apprentice
Apprentice


Joined: 06 Sep 2003
Posts: 211
Location: Manchester, UK

PostPosted: Sat Nov 15, 2003 6:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
ruomad
Tux's lil' helper
Tux's lil' helper


Joined: 17 Apr 2003
Posts: 93

PostPosted: Sat Nov 15, 2003 6:19 pm    Post subject: Reply with quote

did you add the machine first as user (netbios name +$) ?
Back to top
View user's profile Send private message
ferrarif5
Apprentice
Apprentice


Joined: 06 Sep 2003
Posts: 211
Location: Manchester, UK

PostPosted: Sat Nov 15, 2003 6:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
tam1138
Tux's lil' helper
Tux's lil' helper


Joined: 28 Oct 2003
Posts: 103

PostPosted: Sun Nov 16, 2003 12:58 am    Post subject: Reply with quote

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
View user's profile Send private message
ferrarif5
Apprentice
Apprentice


Joined: 06 Sep 2003
Posts: 211
Location: Manchester, UK

PostPosted: Sun Nov 16, 2003 1:37 am    Post subject: Reply with quote

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
View user's profile Send private message
tam1138
Tux's lil' helper
Tux's lil' helper


Joined: 28 Oct 2003
Posts: 103

PostPosted: Sun Nov 16, 2003 3:56 am    Post subject: Reply with quote

Are you root?
Back to top
View user's profile Send private message
ferrarif5
Apprentice
Apprentice


Joined: 06 Sep 2003
Posts: 211
Location: Manchester, UK

PostPosted: Sun Nov 16, 2003 7:40 pm    Post subject: Reply with quote

yeah, used the SU command
_________________
Asus P6X58D-E Mobo
Intel Core i7 920
18GB Corsair DDR3
User:335876 | Screenshot
Back to top
View user's profile Send private message
tam1138
Tux's lil' helper
Tux's lil' helper


Joined: 28 Oct 2003
Posts: 103

PostPosted: Sun Nov 16, 2003 11:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
ferrarif5
Apprentice
Apprentice


Joined: 06 Sep 2003
Posts: 211
Location: Manchester, UK

PostPosted: Mon Nov 17, 2003 11:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum