LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 07-08-2005, 09:07 PM   #1
spurs_adr
LQ Newbie
 
Registered: May 2005
Location: Johor, Malaysia
Posts: 2

Rep: Reputation: 0
Question How join a Linux PC to a domain in Windows


Dear Forumers,
I have recently installed SuSE Linux Enterprise 9.0 on a PC. My objective is to setup FTP service on it and join it to my company's network. Problem is, I have already installed SuSE as well as SAMBA but I still can get it connected to the network (which is all running on Windows based OS). Please advise.

P/S: I have installed SAMBA but have no clue on how to configure it.

Help appreciated.

Thank You

Regards,
spurs_adr
 
Old 07-08-2005, 09:39 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Pretty vague question don't you think? I'd suggest for you to start by reading the manual and or documentation at www.samba.org

When you come across something you don't understand, ask here or try searching if it's already been asked..
 
Old 07-08-2005, 09:57 PM   #3
Sharaz
Member
 
Registered: Jun 2005
Location: Dallas, TX
Distribution: Fedora 11,12, RedHat4,6, CentOS4,5, FreeBSD7,8
Posts: 70

Rep: Reputation: 16
join it to a windows domain... so you can what? what might that accomplish?
 
Old 07-08-2005, 10:01 PM   #4
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Quote:
Originally posted by Sharaz
join it to a windows domain... so you can what? what might that accomplish?
There are many reasons to join it to a Windows domain. The last company I worked for, we used it as all of our Windows machines logged in and were authenticated thru Active Directory, so joining it to the Domain made it much easier for users to access Samba shares on our Redhat Linux server using their Windows passwords, etc.

Perhaps if your not going to help with any type of solution and doubt why they would need such solutions, you should just skip it and move on to the next post..
 
Old 07-18-2005, 04:36 PM   #5
rajeshdogra
LQ Newbie
 
Registered: Jul 2005
Location: Delhi,India
Distribution: RHEL, UBUNTU
Posts: 19

Rep: Reputation: 0
Hi guys,
i am having problem in joining redhat 9 to domain run by win2003 server active directory. I have configured samba server(samba-2.2.7a-7.9.0) as-
in /etc/samba/sbm.conf file :

[global]
workgroup = {domain}
server string = {server name}

log file = /var/log/samba/%m.log
max log size = 50

security = domain
password server = [name of a PDC or BDC for {domain}]
encrypt passwords = yes
smb passwd file = /etc/samba/private/smbpasswd

local master = no
wins server = {wins server}
dns proxy = no


than i added a dummy entry to the smbpasswd file, which alredy exists in domain( same id thru which i login domain on win2003 server) .created a user account on the Linux serverand executed following commands:
cd /etc/samba/private
cat /etc/passwd | mksmbpasswd.sh > smbpasswd

and edited the smbpasswd file by removing all lines except those for the dummy user account.
than i ran:

smbpasswd -j DOMAIN -r PDC -U DOMAINADMINUSERNAME
password:

after submitting the password it gives error:
NT_SERVER_ACCESS_DENIED

Now what shud i do i am not able to understand where i went wrong?!!
Plz Help
 
Old 07-18-2005, 05:11 PM   #6
hlyrad
Member
 
Registered: Jul 2005
Location: Ab Ca
Distribution: Redhat EL Sun Mac OSX FC 3.0 & 4.0
Posts: 44

Rep: Reputation: 15
There are a number of steps you need to take
1. Update samba to latest stable version
2. Configure smb.conf
Heres mine
[global]
workgroup = DOMAINNAME
netbios name = NETBIOSNAME
security = DOMAIN
idmap uid = 15000-40000
idmap gid = 45000-48000
winbind cache time = 15
winbind separator = +
winbind use default domain = Yes
use sendfile = Yes
wins server = IP OF WINS
template homedir = /home/%D/%U
template shell = /bin/false
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
log level = 3
[homes]
comment = Home Directories
#valid users = %U
path = /home/PATHTOHOMEDIR/%U
create mask = 0775
force create mode = 0775
directory mask= 0775
force directory mode = 0775
read only = No
browseable = No
read only = No
browseable = No
3. Edit /etc/nsswitch.conf and include the following

passwd: files winbind
group: files winbind
hosts: files dns

4. Check that /lib/security/pam_winbind.so exists and edit /etc/pam.d/authconfig
#%PAM-1.0
auth sufficient /lib/security/pam_winbind.so
account sufficient /lib/security/pam_winbind.so
auth sufficient /lib/security/$ISA/pam_rootok.so
auth required /lib/security/$ISA/pam_stack.so service=system-auth
account required /lib/security/$ISA/pam_permit.so
session required /lib/security/$ISA/pam_permit.so
edit /etc/pam.d/ech
#%PAM-1.0
auth required /lib/security/pam_securetty.so
auth required /lib/security/pam_nologin.so
auth sufficient /lib/security/pam_winbind.so
auth required /lib/security/pam_pwdb.so use_first_pass shadow nullok
account required /lib/security/pam_winbind.so

edit /etc/pam.d/paswd
#%PAM-1.0
auth required /lib/security/pam_securetty.so
auth required /lib/security/pam_nologin.so
auth sufficient /lib/security/pam_winbind.so
auth required /lib/security/pam_pwdb.so use_first_pass shadow nullok
account required /lib/security/pam_winbind.so

5. Windows Active Directory relies heavily on Windows DNS so make sure your linux box is configured to use the AD dns server in /etc/resolve.conf

6. run net rpc join -UUSERNAME%'PASSWORD'
You should receive a response back saying joined SUCHANDSUCH domain
7. Start winbindd and samba

Last edited by hlyrad; 07-18-2005 at 05:23 PM.
 
  


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
Help using 'net join' to join a windows domain Wapo Linux - Networking 1 04-28-2006 03:30 AM
Join linux to Windows domain CalibraTeam Slackware 8 10-20-2005 03:35 AM
windows 2003 can't join linux domain niggersak Linux - Networking 1 08-10-2005 07:25 AM
Making a Linux PC join a Windows 2003 domain leo_linux Linux - Networking 4 05-19-2005 05:23 AM
Can linux join (as a client) Windows 2000 domain?? halo14 Red Hat 2 11-01-2004 08:40 PM


All times are GMT -5. The time now is 11:42 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration