LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-26-2003, 07:44 PM   #1
c0c0deuz
Member
 
Registered: Aug 2001
Location: Qc, Canada
Distribution: RedHat, Mandrake, FreeEOS
Posts: 336

Rep: Reputation: 30
Samba


I have install samba on my machine and i intend to use it as a domain controller.
i've create user1 with pwd1 and user2 with pwd2
i go to my XP workstation and i try to connect to the samba server...
user1 give me a 'unknown user or incorect pwd'
user2 give me a 'Access denied'

were can i start diag this thing?
thks
 
Old 06-26-2003, 08:14 PM   #2
stony
Member
 
Registered: Jun 2003
Location: Europe / Germany / Saarland / Neunkirchen
Distribution: Debian (SID), Gentoo
Posts: 131

Rep: Reputation: 15
Hi,

man smbpasswd

cu
 
Old 06-27-2003, 08:37 PM   #3
saber41
Member
 
Registered: Jun 2003
Posts: 90

Rep: Reputation: 15
Double check to make sure that your computers have the same "workgroup" name and can ping eachother,
also, check directory permissions.

Check out webmin (www.webmin.com),

it will not only help to manage your samba quite nicely, but other aspects of linux too.
 
Old 06-30-2003, 08:23 AM   #4
c0c0deuz
Member
 
Registered: Aug 2001
Location: Qc, Canada
Distribution: RedHat, Mandrake, FreeEOS
Posts: 336

Original Poster
Rep: Reputation: 30
-yes it does ping

-if i do a net view with my m$ box it doesn't see it... It seems normal since it coul'd join my samba domain home.local

-i didn't get any error with testparm

-it doesn't resolve it's own name, if i ping sbmserv, i've got an unknown host.

- if i type hostname i have a dhcppc1 reply but my smb.conf as a line :
netbios name = smbserver
 
Old 06-30-2003, 10:12 AM   #5
aigartua
Member
 
Registered: Dec 2002
Location: Xalapa, Ver. México
Distribution: Red Hat
Posts: 108

Rep: Reputation: 15
if you are using xp pro you need tu add a machine acount in your samba: smbpasswd -m <netbios name>
 
Old 06-30-2003, 10:28 AM   #6
c0c0deuz
Member
 
Registered: Aug 2001
Location: Qc, Canada
Distribution: RedHat, Mandrake, FreeEOS
Posts: 336

Original Poster
Rep: Reputation: 30
Yes, it is a XP Pro
No, it is there with a $ sign and no password

I just try to overwrite it but it doesn't change anything...
 
Old 06-30-2003, 02:03 PM   #7
c0c0deuz
Member
 
Registered: Aug 2001
Location: Qc, Canada
Distribution: RedHat, Mandrake, FreeEOS
Posts: 336

Original Poster
Rep: Reputation: 30
I am wondering if i need a bind server to resolve the dn or if it is not necessary?
 
Old 06-30-2003, 04:10 PM   #8
aigartua
Member
 
Registered: Dec 2002
Location: Xalapa, Ver. México
Distribution: Red Hat
Posts: 108

Rep: Reputation: 15
you dont need a dns, samba resolve netbios names, you can read http://hr.uoregon.edu/davidrl/samba/samba-pdc.html if i found e better manual i post you
 
Old 06-30-2003, 07:33 PM   #9
c0c0deuz
Member
 
Registered: Aug 2001
Location: Qc, Canada
Distribution: RedHat, Mandrake, FreeEOS
Posts: 336

Original Poster
Rep: Reputation: 30
I don't get it!
I tought that a PDC was a domain controller controling a 'domain...' I tought i could get it to resolve domain name and get away from WINS.

Can someone clarifies this for me please
thks
 
Old 06-30-2003, 07:33 PM   #10
c0c0deuz
Member
 
Registered: Aug 2001
Location: Qc, Canada
Distribution: RedHat, Mandrake, FreeEOS
Posts: 336

Original Poster
Rep: Reputation: 30
I don't get it!
I tought that a PDC was a domain controller controling a 'domain...' I tought i could get it to resolve domain name and get away from WINS.

Can someone clarifies this for me please
thks
 
Old 06-30-2003, 07:33 PM   #11
c0c0deuz
Member
 
Registered: Aug 2001
Location: Qc, Canada
Distribution: RedHat, Mandrake, FreeEOS
Posts: 336

Original Poster
Rep: Reputation: 30
I don't get it!
I tought that a PDC was a domain controller controling a 'domain...' I tought i could get it to resolve domain name and get away from WINS.

Can someone clarifies this for me please
thks
 
Old 07-02-2003, 08:39 AM   #12
c0c0deuz
Member
 
Registered: Aug 2001
Location: Qc, Canada
Distribution: RedHat, Mandrake, FreeEOS
Posts: 336

Original Poster
Rep: Reputation: 30
I am fallowing carefully an HOWTO and it seem that i have the isolated the problem a bit
Where it seems to be the problem is something in the fallowing lines that i don't get it... I didn't put anything in those directory, do i have to do anything in Win-profile? %U.bat? \netlogon?

[GLOBAL]
logon home = \\%L\%U\Win-profile
logon drive = s:

logon script = %U.bat
logon path = \\%L\profiles\\%a\%U

[NETLOGON]
path = \home\netlogon
create mask = 0644
directory mask = 0755

[PROFILES]
path = /home/profiles
read only =No
create mask = 0600
directory mask = 0700

Samba is working because i do have a login window when i try to join the domain.local, it doesn't resolve the name and the password. This is there i stand so far
 
Old 07-02-2003, 08:53 AM   #13
c0c0deuz
Member
 
Registered: Aug 2001
Location: Qc, Canada
Distribution: RedHat, Mandrake, FreeEOS
Posts: 336

Original Poster
Rep: Reputation: 30
logon home = \\%L\%U\Win-profile
shoud that line be:
logon home = \\%L\home\%U\Win-profile

also should i create that Win-profile directory or file under each user?

If so, that does go in?
 
Old 07-02-2003, 09:10 AM   #14
aigartua
Member
 
Registered: Dec 2002
Location: Xalapa, Ver. México
Distribution: Red Hat
Posts: 108

Rep: Reputation: 15
what version of samba and distro are you using?
 
Old 07-02-2003, 09:21 AM   #15
aigartua
Member
 
Registered: Dec 2002
Location: Xalapa, Ver. México
Distribution: Red Hat
Posts: 108

Rep: Reputation: 15
This is mi smb.conf and work fine like PDC, i hope this help you:

[global]

#smbpasswd file
smb passwd file = /etc/smbpasswd

# domain
workgroup = test

# Description
server string = Servidor de Acceso y de Aplicacion

# like pdc
domain logons = yes

# user security level
security = user

# local master
local master = yes

# for make wins elections
os level = 65

# prefered master
preferred master = yes

# works like pdc
domain master = yes
encrypt passwords = yes

# only if you have more than one eth and only want trusted users
# interfaces = <ip trusted> localhost
hosts allow = 192.168.0.
;hosts deny = 10.25.0.1
;add user script = /usr/sbin/useradd -g samba -d /dev/null -s /dev/null -M %u

# path for save WinNT/Win2k profiles
logon path = \\%L\profiles\%U

# path for save Win95/98/ME profiles
logon home = \\%L\%U\.profiles

# unit letter for users directory
logon drive = M:

[homes]
guest ok = no
read only = no
browsable = no

[netlogon]
comment = Domain Service
path = /usr/local/samba/netlogon
public = no
writeable = no

[profiles]
path = /usr/local/samba/ntprofile
writable = yes
create mask = 0600
directory mask = 0700
 
  


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/Cups print sharing problems (/var/spool/samba files) Gates1026 Linux - General 9 06-23-2013 01:33 AM
Samba - Connecting from WinXP Pro to Samba running on Debian critical Linux - Networking 1 02-03-2005 09:36 AM
I need the content from thegoldenear.org/toolbox/unices/samba/samba-setup.html rtg2001 Linux - Networking 1 08-05-2004 05:54 PM
Samba: Authenticate Linux-Clients in Samba Domain & Mount mule Linux - Software 0 12-10-2003 01:21 AM
when i restart SAMBA,it says:stop samba failed,start SAMBA OK! whepin Linux - Networking 3 12-26-2001 05:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:52 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