LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Connecting to a Samba server (not on domain) from windows domain pc (http://www.linuxquestions.org/questions/linux-server-73/connecting-to-a-samba-server-not-on-domain-from-windows-domain-pc-888539/)

centos123 06-27-2011 04:16 AM

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?

droyden 06-27-2011 05:14 PM

Samba + Pam modules to authenticate from the domain

centos123 06-27-2011 11:29 PM

how to do it can you provide some steps

centos123 06-28-2011 02:11 AM

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?

manyrootsofallevil 06-28-2011 02:28 AM

Quote:

Originally Posted by centos123 (Post 4397666)
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?

Noway2 06-28-2011 04:17 AM

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/

droyden 06-28-2011 04:18 AM

http://wiki.samba.org/index.php/Samb...tive_Directory

colucix 06-28-2011 10:14 AM

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.

centos123 06-29-2011 01:54 AM

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

Noway2 06-29-2011 04:21 AM

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?

centos123 07-01-2011 05:48 AM

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

panseluta 07-01-2011 08:45 AM

Quote:

Originally Posted by centos123 (Post 4396713)
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

panseluta 07-01-2011 08:58 AM

and maybe change security = user to security = share in smb.conf

centos123 07-01-2011 09:39 AM

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

panseluta 07-01-2011 09:46 AM

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.


All times are GMT -5. The time now is 10:20 PM.