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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-02-2010, 04:29 PM
|
#1
|
LQ Newbie
Registered: Dec 2010
Posts: 12
Rep:
|
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
|
|
|
12-02-2010, 05:32 PM
|
#2
|
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
Rep: 
|
Quote:
Originally Posted by damateem
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"?
|
|
|
12-03-2010, 07:36 AM
|
#3
|
LQ Newbie
Registered: Dec 2010
Posts: 12
Original Poster
Rep:
|
Quote:
Originally Posted by David1357
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
|
|
|
12-03-2010, 04:45 PM
|
#4
|
Senior Member
Registered: Oct 2004
Posts: 1,272
Rep: 
|
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
|
|
|
12-04-2010, 11:18 AM
|
#5
|
LQ Newbie
Registered: Dec 2010
Posts: 12
Original Poster
Rep:
|
Looks like a local DNS server is in my future.
Thanks for the help.
|
|
|
All times are GMT -5. The time now is 11:21 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
|
|