Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-26-2004, 12:22 PM
|
#1
|
Member
Registered: Nov 2003
Location: Wales, UK
Distribution: Mandrake 10
Posts: 89
Rep:
|
Samba with Mandrake
Hi...
I've been trying to set up samba to act as a master domain controller for windoze 2000 clients.
When I try to get the client to join the domain, I get greeted with either of the following messages on the client.
"The username/password is not valid" or
"The username matches an existing set of credentials" or words to that effect.
I am trying to join the domain as root.
Here's my smb.conf file, made with SWAT.
[global]
log file = /var/log/samba/log.%m
ldap ssl = no
idmap gid = 15000-20000
add group script = /usr/sbin/groupadd %g
delete group script = /usr/sbin/groupdel %g
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
add user to group script = /usr/sbin/usermod -G %g %u
logon drive = H:
domain master = Yes
map to guest = Bad User
encrypt passwords = yes
printer admin = @adm
passdb backend = tdbsam
wins support = true
dns proxy = No
printing = cups
server string = Samba Server %v
idmap uid = 15000-20000
workgroup = HOMELAN
logon path = \\%N\\profiles\%u
os level = 35
add user script = /usr/sbin/useradd -m %u
printcap name = cups
security = user
add machine script = /usr/sbin/useradd -s /bin/false -d /dev/null
max log size = 50
delete user script = /usr/sbin/userdel -r %u
domain logons = Yes
[homes]
comment = Home Directories
read only = No
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
guest ok = Yes
printable = Yes
print command = lpr-cups -P %p -o raw %s -r # using client side printe
r drivers.
browseable = No
[print$]
path = /var/lib/samba/printers
write list = @adm, root
inherit permissions = Yes
guest ok = Yes
[pdf-generator]
comment = PDF Generator (only valid users)
path = /var/tmp
printable = Yes
print command = /usr/share/samba/scripts/print-pdf %s ~%u //%L/%u %m %I
"%J" &
[netlogon]
path = /var/lib/samba/netlogon
write list = ntadmin
[profiles]
path = /var/lib/samba/profiles
read only = No
create mask = 0600
directory mask = 0700
browseable = No
I have removed the some of the users shares from the above.
Any Ideas?
Cheers,
DBG
|
|
|
10-26-2004, 01:38 PM
|
#2
|
Senior Member
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029
Rep:
|
your add machine script doesn't look right
|
|
|
10-27-2004, 01:05 AM
|
#3
|
LQ Newbie
Registered: Oct 2004
Location: west coast of Canada
Distribution: mandrake 9.2
Posts: 25
Rep:
|
Things you may want to check
do the unix user names the clients log in with have access/read/write permission to the shared directories?
are you samba user names/passwords the same as your unix ones?
I can't help with domain issues - I still use win98 clients and simple shares.
Stuart
|
|
|
10-27-2004, 01:50 PM
|
#4
|
Member
Registered: Nov 2003
Location: Wales, UK
Distribution: Mandrake 10
Posts: 89
Original Poster
Rep:
|
Quote:
Originally posted by Finlay
your add machine script doesn't look right
|
Yes...
Think I missed a %u at the end of it.
|
|
|
10-27-2004, 01:52 PM
|
#5
|
Member
Registered: Nov 2003
Location: Wales, UK
Distribution: Mandrake 10
Posts: 89
Original Poster
Rep:
|
Quote:
Originally posted by stuart1946
do the unix user names the clients log in with have access/read/write permission to the shared directories?
are you samba user names/passwords the same as your unix ones?
|
Yes they have permission and the smaba usernames are the same as the unix ones....
|
|
|
10-27-2004, 02:12 PM
|
#6
|
Senior Member
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029
Rep:
|
do you have machine trust accounts created already or are you relying on the script?
|
|
|
All times are GMT -5. The time now is 04:09 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|