LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-19-2003, 02:18 PM   #16
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66

But if you are setting up a domain you need to add an account for each machine as well as each user - this is what I was asking.
 
Old 10-19-2003, 03:48 PM   #17
blither
Member
 
Registered: Dec 2002
Location: Ohio
Distribution: LFS, Ubuntu
Posts: 157

Original Poster
Rep: Reputation: 15
well, im just testing it on one for right now, but should my smbpasswd file, for the machine accoutn look like this....

office$...... or should it be like office........? i thought the $ accounts were users. but if so i dont know how to set them up without the $. i have my root around without the$.
 
Old 10-19-2003, 05:24 PM   #18
blither
Member
 
Registered: Dec 2002
Location: Ohio
Distribution: LFS, Ubuntu
Posts: 157

Original Poster
Rep: Reputation: 15
ok im still getting an error while loging in. i know its the machine account because i follwoed the instructinos... there error message looks like this...

http://f2.pg.photos.yahoo.com/ph/dar...or.jpg&.view=t

also, here is what the config file looks like...

Code:
[global]
workgroup = MSHOME
server string = Samba Server
netbios name = linuxbox
security = domain
encrypt passwords = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
local master = yes
os level = 65
preferred master = yes
domain logons = yes
domain master = yes

[homes]
   comment = Home Directories
   browseable = no
   writable = yes
   valid users = %S
   create mode = 0664
   directory mode = 0775
i dont know what is wrong...
 
Old 10-20-2003, 10:16 AM   #19
thack111
LQ Newbie
 
Registered: Sep 2003
Posts: 18

Rep: Reputation: 0
Do you have a domain controller running on you domain? What are you hopeing to get out of a domain? does your share work direct without a domain?
 
Old 10-20-2003, 01:37 PM   #20
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
When you create accounts you need to do it as follows (I think you have done it right) - you onlyspecify the $ on hte cli when addign it to the password file:
useradd -d /dev/null -s /dev/null WINBOX$
smbpasswd a m WINBOX

Also make sure you have added root as a samba user:
smbadduser root:root

When you try to join the domain make sure that you use the root user and password to do it.
 
Old 10-20-2003, 04:25 PM   #21
blither
Member
 
Registered: Dec 2002
Location: Ohio
Distribution: LFS, Ubuntu
Posts: 157

Original Poster
Rep: Reputation: 15
ok just to straiten things out... when trying to get the client xp box connected to the domain, i type in the root username and password.

where is my smbpasswd file....
Code:
root:0:(hex stuff):(more hexstuff):[UX         ]:LCT-3F94417F:
is that how its supposed to be?

when you did the add user stuff, useradd -d /dev/null -s /dev/null WINBOX$,
was it supposed to have the 2 -'s ( -- ) and when it says the winbox is that the persons username? because i dont want them to have a login for the computer but rather for each person...

thack111 - "Do you have a domain controller running on you domain? What are you hopeing to get out of a domain? does your share work direct without a domain?"

in not sure what is said by the first question, i am hoping to have individual logings for each person, so then i can keep track of things run from the computers, give different access, etc. also its fun to do anyway. my share folders do work, if i login with a different user it shows their files, just the domain doesnt let the comptuer connect with the root so they can login, i get that access is denied message.

Last edited by blither; 10-20-2003 at 04:27 PM.
 
Old 10-21-2003, 01:14 PM   #22
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
As well as user accounts you need to create machines accounts with:
useradd -d /dev/null s /dev/null WINBOX$

WINBOX should be the name of the computers - don't think "-" or "--" makes a difference. The users will not be able to use this to access the system since it has a null shell and no password. It simply lets the windows box access the permissions that samba provides.

If you haven't added an account for each computer then that will account for the access denied message.
 
Old 10-21-2003, 01:31 PM   #23
siripr
LQ Newbie
 
Registered: Oct 2003
Location: usa
Posts: 2

Rep: Reputation: 0
Are you able to ping both boxes with hostnames ?. I had similar problems, once I added to hosts file everything is OK.
 
Old 10-21-2003, 04:09 PM   #24
blither
Member
 
Registered: Dec 2002
Location: Ohio
Distribution: LFS, Ubuntu
Posts: 157

Original Poster
Rep: Reputation: 15
yes i can ping it....

david_ross -
am i suposed to have the 'WINBOX$' be the name of that computer? like the name of the computer with xp im trying to get this setup on first is called cm-office should my username be cm-office$ or does that not matter, because i am lost as to why it would make a difference if i had a username for each computer?
 
Old 10-21-2003, 04:17 PM   #25
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Yes you should run:
useradd -d /dev/null s /dev/null cm-office$
smbpasswd m cm-office

This gives the computer permission to join the domain.
 
Old 10-21-2003, 06:05 PM   #26
blither
Member
 
Registered: Dec 2002
Location: Ohio
Distribution: LFS, Ubuntu
Posts: 157

Original Poster
Rep: Reputation: 15
ok, i guess i was doing it way wrong, and didnt understand everything i have read. or it didnt wasnt clear of that. but yes thank you very much for all your help! and ill fill you in on if it worked, i have to switch over to the other computer to test! thanks again!
 
Old 10-21-2003, 08:44 PM   #27
blither
Member
 
Registered: Dec 2002
Location: Ohio
Distribution: LFS, Ubuntu
Posts: 157

Original Poster
Rep: Reputation: 15
ok well i have tested it and now, it says it doesnt its a wrong password or it doesnt know the user...this just keeps gettiing harder and harder.... my smbpasswd file now has....

Code:
root:0:(hex stuff):(more hexstuff):[UX         ]:LCT-3F94417F:
cm-office$:1004:(hex stuff):(more hexstuff):[W          ]:LCT-3F92D200:
i i first added the unix user by typeing

useradd -d /dev/null s /dev/null cm-office$

then tryed
smbpasswd m cm-office
but it came up and said

faild to find entry for user cm-office$
faild to modify password entry for user cm-office$

so after that i though i was supposed to ad an a in there with the -m (-am) so i did that, then did smbpasswd cm-office, and it prompted me for the password...now when i went to my windows box, it then states that it was an incorrect password or username... and i know i typed them in correctly....

and now i dont know what do to.... :(

Last edited by blither; 10-21-2003 at 08:47 PM.
 
Old 10-23-2003, 02:17 PM   #28
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Try resetting the root smb password:
smbpasswd root

Then enter a new password.

Then try to add it to the domain again.
 
  


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
setup of apache server to host own domain captain skywave SUSE / openSUSE 0 02-22-2005 02:40 PM
Problem with Win XP Clients logging in a Domain with a Samba Server YasoKuhl Linux - Networking 0 05-03-2004 02:06 PM
SuSE 9, Samba server and Win2k server domain koskoboy Linux - Networking 3 12-11-2003 07:32 AM
Join Domain in SAMBA Server radixiz Linux - Software 3 11-28-2003 03:09 PM
setup samba as Windows Domain Member ateh Linux - Networking 4 06-06-2002 04:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:26 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration