LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-08-2008, 12:11 PM   #1
kimchee
LQ Newbie
 
Registered: Mar 2008
Posts: 2

Rep: Reputation: 0
Samba only works when I'm on the corporate network


I am using Redhat Linux on VMware. My Samba connection from Windows works fine at work when I'm on the corporate network. No login prompt appears. The connection is automatic.

However, if I'm not on the corporate network, I get a password prompt. The username is grayed out and has Linux_ip_address\Guest. I'm not sure what to try for the password. Nothing I have tried works. I can ping from Windows to my VMWare Linux.

Here is my environment:
  • Red Hat Enterprise Linux ES release 4 (Nahant)
  • VMware 4.5.2
  • XP Pro
  • VMware Network setting: Host-only

Here is my Samba settings:
  • Authentication Mode: Share
  • Authentication Server: empty
  • Kerberos Realm: empty
  • Encrypt password: No
  • Guest Account: root

Anyone have any ideas on how i can get Samba to work when I'm not on the corporate network? I'd like to be able to connect automatically like when I'm connected to the corporate network.

Thanks.

Last edited by kimchee; 03-08-2008 at 12:12 PM.
 
Old 03-08-2008, 03:01 PM   #2
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
Quote:
Originally Posted by kimchee View Post
I am using Redhat Linux on VMware. My Samba connection from Windows works fine at work when I'm on the corporate network. No login prompt appears. The connection is automatic.

However, if I'm not on the corporate network, I get a password prompt. The username is grayed out and has Linux_ip_address\Guest. I'm not sure what to try for the password. Nothing I have tried works. I can ping from Windows to my VMWare Linux.
In both cases, Windows is passing credentials to Samba - the credentials that you used to login to Windows itself. In the first case, Samba accepts the credentials that Windows is passing, so the login happens transparently, without needing prompt you for anything. In the second case, your credentials weren't correct, so Windows gave you a prompt to manually resolve the issue.

Is your Active Directory username the same as your local Windows username?
 
Old 03-08-2008, 07:39 PM   #3
kimchee
LQ Newbie
 
Registered: Mar 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Hob, thanks for your response.

Quote:
Originally Posted by hob View Post
Is your Active Directory username the same as your local Windows username?
I have always used my domain account to login to Windows, whether I was on the corporate network or not.

So now I have just created an account on the local machine that has the same name as my domain account. I also created an account in Linux with the same name. If I log into Windows with the new account, samba connects seamlessly from Windows just like it did when I was on the corporate network. I don't get a login prompt so that's great but I have one problem. I can only get this to work if I'm logged into Windows using my newly created account. Ideally I would like Samba to work from my original domain account. How? Like i said previously, when i get the login prompt, the username field (linux_ip_address\Guest) is grayed out, and so is the down arrow and the [...] button just next to the user name, preventing me from changing the username.

Now that I can get it to work when I login with the new Windows account, and given the previous reply, I'm wondering why it worked in the first place when I'm on the corporate network using my domain account?

Last edited by kimchee; 03-08-2008 at 11:25 PM. Reason: Adding more info.
 
Old 03-09-2008, 07:38 AM   #4
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
Quote:
Originally Posted by kimchee View Post
Ideally I would like Samba to work from my original domain account. How? Like i said previously, when i get the login prompt, the username field (linux_ip_address\Guest) is grayed out, and so is the down arrow and the [...] button just next to the user name, preventing me from changing the username.
I've only seen that particular behavior when something is fundamentally wrong with the networking or configuration. Probably simplest thing to do is to pick one of these these options, and then setup things appropriately:

Best choice - don't run Samba on the RHEL instance. If all that you want to do is move files between the host and the guest then the "shared folders" feature of VMware is easy to setup, and you don't need to make RHEL a Samba server at all.

Next best choice - make your local, Windows domain, and Samba accounts have the same name and password. Windows should then work with the domain account without prompting you ("pass-through authentication").

In the second case, you should probably go back to the initial Samba configuration file, but change the security mode to "user". Samba has many options, but the defaults work, and people can get into trouble by changing more settings than they needed to.
 
  


Reply

Tags
samba, vmware



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
Samba test share works, but homes returns with "network name cannot be found spiff28088 Linux - Server 8 05-01-2007 10:13 AM
Corporate/Enterprise Network Design janskey Linux - Networking 5 06-28-2006 10:49 AM
Samba Works but Nautilus can't find the network paul.nel Red Hat 0 11-23-2004 12:20 PM
Samba Mount to Large Corporate Network larsenmtl Linux - Newbie 5 04-08-2004 10:43 AM
Need Advice on building a Linux/Samba Server for an internal corporate network mdkelly069 Linux - Networking 7 11-03-2003 04:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:15 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
Open Source Consulting | Domain Registration