Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
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-2005, 02:52 AM
|
#1
|
Member
Registered: Apr 2004
Distribution: RedHat, Fedora, Suse, Debian, Gentoo, Mandrake
Posts: 132
Rep:
|
Joining A Domian Controlled By Samba
Hi there
I've a problem with trying to join a domain controlled by samba-3.x
which is when I'm changing the Xp-pro box form WorkGroup to
a domain it asks me username/password
which is the one i added with
smbpasswd -a root and so on
+ in /etc/samba/smbusers the user root is mapped to
administrator and admin
(net groupmap list ) verifying that
domain admins ======> root
but administrators =====> 1
actually I tried all samba users accounts + root and administrator
but nothing works .
if I'm trying root <then it says user not found>
administrator <access is denied>
diff user <username/password bla bla bla>
{I still can access the share using this root and any other account locally and through the same Xp}
even I tried administrator account safe mode but it dosen't work
any suggestions
Thank you
Last edited by ziox; 10-26-2005 at 05:28 PM.
|
|
|
10-27-2005, 01:31 AM
|
#2
|
Member
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855
Rep:
|
have you
chmod -R a+rwx to your netlogon & profile share?
|
|
|
10-27-2005, 04:00 PM
|
#3
|
Member
Registered: Apr 2004
Distribution: RedHat, Fedora, Suse, Debian, Gentoo, Mandrake
Posts: 132
Original Poster
Rep:
|
Hi
actully I was just implementing some examples from this link
http://www.samba.org/samba/docs/man/...html#id2536722
and in this example they didn't mention to give netlogon any permissions
thank you
|
|
|
10-27-2005, 08:58 PM
|
#4
|
Member
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855
Rep:
|
hi there,
i wasn't really sure that was the answer,i just thought i'd tell you to give it a go. if that example isn't helping you out much you might want to try one i've setup on my local lug site.
http://tlug.dnho.net/?q=node/146
that is using OpenLDAP and LAM with samba as a primary domain controller
there is also a Server setup script i've been working on if you want to give it a good and tell me how things go you could try it out. it's very much in the beta development stages.
http://www.geocities.com/evilperson85/serversetup.txt
|
|
|
10-27-2005, 11:44 PM
|
#5
|
Member
Registered: Apr 2004
Distribution: RedHat, Fedora, Suse, Debian, Gentoo, Mandrake
Posts: 132
Original Poster
Rep:
|
Hi there
in the example I sent you they didn't mention about even making a directory for netlogon
but I did make one and gave it the a+rwx didn't work either
and I still can access the share every where local in the linux box *Fedora-C3*
and through xp and win2000
but still joining the domain wont work. the same error on the both machine `xp & win2000`
always <user not found> <access is denied> or <user not found or bad password>
<by the way --if you're using webmin you will find SWAT included>
|
|
|
10-28-2005, 10:27 PM
|
#6
|
Member
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855
Rep:
|
if you follow the howto i gave you,or use my script to set it up,it should work fine. but if it still dosn't post your smb.conf file here and i'll look at it and see if i can see a problem with it.
|
|
|
10-30-2005, 01:46 AM
|
#7
|
Member
Registered: Apr 2004
Distribution: RedHat, Fedora, Suse, Debian, Gentoo, Mandrake
Posts: 132
Original Poster
Rep:
|
Hi
here is how is my smb.conf look like
---------------------------------------------------------------------
# Global parameters
[global]
workgroup = KIMRY
passwd chat = *New*Password* %n\n*Re-enter*new*password* %n\n *Password*changed*
username map = /etc/samba/smbusers
syslog = 0
name resolve order = wins bcast hosts
printcap name = CUPS
show add printer wizard = No
add user script = /usr/sbin/useradd -m '%u'
delete user script = /usr/sbin/userdel -r '%u'
add group script = /usr/sbin/groupadd '%g'
delete group script = /usr/sbin/groupdel '%g'
add user to group script = /usr/sbin/usermod -G '%g' '%u'
add machine script = /usr/sbin/useradd -s /bin/false -d /var/lib/nobody '%u'
logon script = scripts\login.bat
logon path =
logon drive = X:
domain logons = Yes
preferred master = Yes
wins support = Yes
printing = CUPS
[homes]
comment = Home Directories
valid users = %S
read only = No
browseable = No
[printers]
comment = SMB Print Spool
path = /var/spool/samba
printable = Yes
guest ok = Yes
use client driver = Yes
browseable = No
[netlogon]
comment = Network Logon Service
path = /data/%U
valid users = %S
read only = No
[acc-dept]
comment = Accounting Files
path = /data/acc--dept
valid users = %G
read only = No
[it-serv]
comment = Financial Service Files
path = /data/it-serv
valid users = %G
read only = No
---------------------------------------------------------------------
exactly as the example in this book(just different dir-names)
Last edited by ziox; 11-03-2005 at 10:23 PM.
|
|
|
11-19-2005, 05:26 PM
|
#8
|
Member
Registered: Apr 2004
Distribution: RedHat, Fedora, Suse, Debian, Gentoo, Mandrake
Posts: 132
Original Poster
Rep:
|
Hi
No one respond after this smb.conf at all ???
I've tried to join to this domain locally on the linux box but it also failed
===============================================
[#] net join kimry
root's password
[date time] utils/net_ads.c:ads_startup(186)
ads_connect: No such file or directory
Create of workstation account failed
Unable to join domain kimry
===============================================
|
|
|
All times are GMT -5. The time now is 01:47 PM.
|
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
|
|