LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 06-27-2011, 05:16 AM   #1
centos123
Member
 
Registered: Apr 2011
Posts: 394

Rep: Reputation: 15
Connecting to a Samba server (not on domain) from windows domain pc


i need to allow window domain controller user to use file share of linux.windows DC user can see the share file and directories of linux file server but not able to access.
below is brief--

I have a Linux machine which is on my network but not on my domain. I have configured SAMBA FILESERVER for file sharing purpose. I have a Windows XP PC which is on the domain(windows server) that I am trying to connect to a share on the Linux box.
I supply my credentials but regardless of which login I use I always get Logon Failure. I have created an account on the Linux machine with the same user name and password as my domain account but so far no luck. Can I connect from a domain PC to a non-domain Linux box? Is there something else I should be checking?

Last edited by centos123; 06-29-2011 at 12:21 AM. Reason: 2 same threads, merging question and heading into 1 threads
 
Old 06-27-2011, 06:14 PM   #2
droyden
Member
 
Registered: Feb 2007
Location: UK
Posts: 150

Rep: Reputation: 19
Samba + Pam modules to authenticate from the domain
 
Old 06-28-2011, 12:29 AM   #3
centos123
Member
 
Registered: Apr 2011
Posts: 394

Original Poster
Rep: Reputation: 15
how to do it can you provide some steps
 
Old 06-28-2011, 03:11 AM   #4
centos123
Member
 
Registered: Apr 2011
Posts: 394

Original Poster
Rep: Reputation: 15
Unhappy Connecting to a Samba server (not on domain) from a Windows domain PC

I have a Linux machine which is on my network but not on my domain. I have configured SAMBA FILESERVER for file sharing purpose. I have a Windows XP pro PC which is on the domain that I am trying to connect to a share on the Linux box.
I supply my credentials but regardless of which login I use I always get Logon Failure. I have created an account on the Linux machine with the same user name and password as my domain account but so far no luck. Can I connect from a domain PC to a non-domain Linux box? Is there something else I should be checking?

Last edited by centos123; 06-29-2011 at 12:14 AM.
 
Old 06-28-2011, 03:28 AM   #5
manyrootsofallevil
Member
 
Registered: Dec 2010
Distribution: Red Hat, Kubuntu
Posts: 130

Rep: Reputation: 14
Quote:
Originally Posted by centos123 View Post
I have a Linux machine which is on my network but not on my domain. I have configured SAMBA FILESERVER for file sharing purpose. I have a Windows XP pro PC which is on the domain that I am trying to connect to a share on the Linux box.
I supply my credentials but regardless of which login I use I always get Logon Failure. I have created an account on the Linux machine with the same user name and password as my domain account but so far no luck. Can I connect from a domain PC to a non-domain Linux box? Is there something else I should be checking?


Shivendra....
Have you tested the share any other way?

e.g. can you mount that share from the samba file server? from other linux box on the same network?

Have you opened the firewall on the server to allow connections?
 
Old 06-28-2011, 05:17 AM   #6
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Ubuntu 10.10, Slackware 64-current
Posts: 2,124

Rep: Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776
Your asking the same question, how to log into your non Linux machine using domain credentials in two threads. You have also been given different answers in both threads. Please post your question in one one thread. This will help to keep the discussion on target and avoid confusion. Thread reported as a duplicate of this one: http://www.linuxquestions.org/questi...server-888539/
 
Old 06-28-2011, 05:18 AM   #7
droyden
Member
 
Registered: Feb 2007
Location: UK
Posts: 150

Rep: Reputation: 19
http://wiki.samba.org/index.php/Samb...tive_Directory
 
Old 06-28-2011, 11:14 AM   #8
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
The two thread are indeed strictly related (basically the same question), therefore they have been merged here, since both of them already had answers. Please, centos123, don't double post. Keeping the discussion in one forum/thread makes easier for members to help you.
 
Old 06-29-2011, 02:54 AM   #9
centos123
Member
 
Registered: Apr 2011
Posts: 394

Original Poster
Rep: Reputation: 15
is it possible by adding user - root and password in windows domain pc,all user of domain can connect to linux server.and share their file
 
Old 06-29-2011, 05:21 AM   #10
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Ubuntu 10.10, Slackware 64-current
Posts: 2,124

Rep: Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776
As Droyden already pointed you in the direction of: Using Samba, LDAP, and Kerberos, built with the proper libraries, it is possible to have a Linux system authenticate users against an Active Directory user base. Your post specifically mentions "root" and while I can't say definitively, I am pretty certain that the answer is no, you can't authenticate "root" via this method, nor would I think you would want to. From what I have read, once you do this, users will no longer have a "home" directory on the Linux machine as they do as local account users. In order to share files, you could set up a common file share using Samba. For that matter, you could do this without requiring the domain login to the Linux machine.

From the posts in your other thread, you apparently have already started to go down this path. Were you perhaps trying to ask a different question?
 
Old 07-01-2011, 06:48 AM   #11
centos123
Member
 
Registered: Apr 2011
Posts: 394

Original Poster
Rep: Reputation: 15
i configure from some material available from google...but iam getting error..

#/etc/init.d/winbind restart

Shutting down Winbind services: [FAILED]
Starting Winbind services: [ OK ]

#net ads join -U administrator
administrator's password:
[2011/07/01 13:44:19, 0] utils/net_ads.c:ads_startup_int(286)
ads_connect: No logon servers
 
1 members found this post helpful.
Old 07-01-2011, 09:45 AM   #12
panseluta
LQ Newbie
 
Registered: Dec 2008
Posts: 20

Rep: Reputation: 1
Quote:
Originally Posted by centos123 View Post
i need to allow window domain controller user to use file share of linux.windows DC user can see the share file and directories of linux file server but not able to access.
SE Linux is preventing you to access samba. I had the same problem with fedora12 and fedora14. I changed to Ubuntu, it's much easier to config samba.

Try this commands as root:

Code:
setsebool -P samba_domain_controller on 

setsebool -P samba_enable_home_dirs on
or change SE Linux mode to permissive to see if that's the problem:

setenforce 0

other modes are: permissive [0], enforcing [1], or disabled [2]


also in /etc/samba/ edit smb.conf and add

[desired_name]
path = /home/folder
browseable = yes
writeable = yes
guest ok = yes

Last edited by panseluta; 07-01-2011 at 09:48 AM. Reason: forgot something
 
Old 07-01-2011, 09:58 AM   #13
panseluta
LQ Newbie
 
Registered: Dec 2008
Posts: 20

Rep: Reputation: 1
and maybe change security = user to security = share in smb.conf
 
Old 07-01-2011, 10:39 AM   #14
centos123
Member
 
Registered: Apr 2011
Posts: 394

Original Poster
Rep: Reputation: 15
my file server is in on centos..and it is not domain controller..my domain controller in on windows...
so did i also have to make my linux as DC
 
Old 07-01-2011, 10:46 AM   #15
panseluta
LQ Newbie
 
Registered: Dec 2008
Posts: 20

Rep: Reputation: 1
you don't have to make your linux DC. fedora and centos are based on redhat so the configuration is the same for samba.

The problem you have is from SE Linux which comes with centos too.

Also in your firewall config you must open some ports:

iptables -A INPUT -i eth0 -p udp --dport 137 -j ACCEPT
iptables -A INPUT -i eth0 -p udp --dport 138 -j ACCEPT
iptables -A INPUT -i eth0 -p tcp --dport 139 -j ACCEPT
iptables -A INPUT -i eth0 -p tcp --dport 445 -j ACCEPT

change eth0 with your network interface used for samba sharing.

Last edited by panseluta; 07-01-2011 at 01:52 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
[SOLVED] Linux Domain Controller on a current Windows Server Domain LaurelRaven Linux - Server 3 02-02-2012 08:43 AM
New domain controller/directory server on Linux? humbletech99 Linux - Networking 2 12-16-2005 06:03 AM
domain controller in samab server ali_hammad Linux - Networking 3 06-13-2005 04:36 PM
Samba and WIndow NT Domain Controller vinhhv Linux - Networking 1 07-31-2003 03:26 AM


All times are GMT -5. The time now is 06:23 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration