| Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
| 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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
06-27-2011, 04:16 AM
|
#1
|
|
Member
Registered: Apr 2011
Posts: 381
Rep:
|
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-28-2011 at 11:21 PM.
Reason: 2 same threads, merging question and heading into 1 threads
|
|
|
|
06-27-2011, 05:14 PM
|
#2
|
|
Member
Registered: Feb 2007
Location: UK
Posts: 150
Rep:
|
Samba + Pam modules to authenticate from the domain
|
|
|
|
06-27-2011, 11:29 PM
|
#3
|
|
Member
Registered: Apr 2011
Posts: 381
Original Poster
Rep:
|
how to do it can you provide some steps
|
|
|
|
06-28-2011, 02:11 AM
|
#4
|
|
Member
Registered: Apr 2011
Posts: 381
Original Poster
Rep:
|
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-28-2011 at 11:14 PM.
|
|
|
|
06-28-2011, 02:28 AM
|
#5
|
|
Member
Registered: Dec 2010
Distribution: Red Hat, Kubuntu
Posts: 130
Rep:
|
Quote:
Originally Posted by centos123
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?
|
|
|
|
06-28-2011, 04:17 AM
|
#6
|
|
Senior Member
Registered: Jul 2007
Distribution: Ubuntu 10.10, Slackware 64-current
Posts: 2,046
|
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/
|
|
|
|
06-28-2011, 04:18 AM
|
#7
|
|
Member
Registered: Feb 2007
Location: UK
Posts: 150
Rep:
|
|
|
|
|
06-28-2011, 10:14 AM
|
#8
|
|
Moderator
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.4 OpenSuSE 12.2
Posts: 9,897
|
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.
|
|
|
|
06-29-2011, 01:54 AM
|
#9
|
|
Member
Registered: Apr 2011
Posts: 381
Original Poster
Rep:
|
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
|
|
|
|
06-29-2011, 04:21 AM
|
#10
|
|
Senior Member
Registered: Jul 2007
Distribution: Ubuntu 10.10, Slackware 64-current
Posts: 2,046
|
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?
|
|
|
|
07-01-2011, 05:48 AM
|
#11
|
|
Member
Registered: Apr 2011
Posts: 381
Original Poster
Rep:
|
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.
|
07-01-2011, 08:45 AM
|
#12
|
|
LQ Newbie
Registered: Dec 2008
Posts: 20
Rep:
|
Quote:
Originally Posted by centos123
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 08:48 AM.
Reason: forgot something
|
|
|
|
07-01-2011, 08:58 AM
|
#13
|
|
LQ Newbie
Registered: Dec 2008
Posts: 20
Rep:
|
and maybe change security = user to security = share in smb.conf
|
|
|
|
07-01-2011, 09:39 AM
|
#14
|
|
Member
Registered: Apr 2011
Posts: 381
Original Poster
Rep:
|
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
|
|
|
|
07-01-2011, 09:46 AM
|
#15
|
|
LQ Newbie
Registered: Dec 2008
Posts: 20
Rep:
|
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 12:52 PM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:07 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
|
|