LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 12-02-2010, 04:29 PM   #1
damateem
LQ Newbie
 
Registered: Dec 2010
Posts: 12

Rep: Reputation: 0
Question Host name access without Samba?


I'm setting up a LAMP production server for the first time. When I installed Ubuntu server edition, I selected to install Samba.

My idea was to be able to easily access the server's files on the LAN using Windows. All was well and I could ping/ssh between Windows and the Ubuntu server without any problems using the host names.

Later, I became concerned that running Samba on a production server might introduce security issues. Therefore, I used apt to purge Samba.

Now I am unable to ping/ssh between the Windows machines and the server using the host names. It only works if I use the IP address.

Two questions:

1.) Is it a security risk to run Samba on a production LAMP server?

2.) How do I get back to being able to use host names without installing Samba?

Thanks,
David
 
Old 12-02-2010, 05:32 PM   #2
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by damateem View Post
2.) How do I get back to being able to use host names without installing Samba?
Do you have entries for the Linux machines in "\WINDOWS\system32\drivers\etc\hosts"?
 
Old 12-03-2010, 07:36 AM   #3
damateem
LQ Newbie
 
Registered: Dec 2010
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by David1357 View Post
Do you have entries for the Linux machines in "\WINDOWS\system32\drivers\etc\hosts"?
I understand that I could use the hosts files on both systems, but I'd really like to let the automatic methods deal with associating IP addresses with host names.

Samba would be a nice solution if I could be sure that it didn't introduce security issues.

Thanks,
David
 
Old 12-03-2010, 04:45 PM   #4
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
The most reliable method I've used is to use dynamic DNS.

When the machine asks for it a dhcp lease it sends the dhcp server it's own host name, once the IP has been assigned, the dhcp server then sends the hostname and ip address to your name server and the name server dynamically updates it's zone record(s) for your LAN. The dhcp server sends a request to remove the mapping when the dhcp lease expires.

This isn't something that is supported on most consumer home routers. I would expect the router orientated distros/OSs support it, for example pfsense or m0n0wall. My router is simply FreeBSD and is set up in the describe way.

The easiest way is just to alter your hosts file, unless you have more than about 5 computers
 
Old 12-04-2010, 11:18 AM   #5
damateem
LQ Newbie
 
Registered: Dec 2010
Posts: 12

Original Poster
Rep: Reputation: 0
Looks like a local DNS server is in my future.

Thanks for the help.
 
  


Reply



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 AD groups GIDs off by ~ 3 from FED12 host A to host B okeeton Linux - Server 0 04-06-2010 11:00 PM
Unable to see shares on samba server - no authentication access desired (open access) neoelf Linux - Networking 1 06-14-2009 03:18 PM
Can't access Samba by host name tebucky Linux - Newbie 4 02-26-2009 07:33 AM
Samba - can't access local host from Windows bostonantifan Linux - Server 1 03-04-2007 01:19 AM
Samba access by Windows users locking out directory access with Konqueror harry_fine SUSE / openSUSE 1 12-18-2004 05:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:24 AM.

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