LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-07-2010, 01:57 AM   #1
saran_redhat
Member
 
Registered: May 2009
Location: chennai
Posts: 247

Rep: Reputation: 16
samba problem


Hi friends,

I have configured one samba server. its working fine. the problem is whe we connect from windows machine , through ipaddress its connected. but i am not able to connect through hostname.
i am using centos5. please help me.
 
Old 10-07-2010, 02:00 AM   #2
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,138
Blog Entries: 4

Rep: Reputation: 147Reputation: 147
in both server and client in host file do this entry

192.168.1.1 samba-server

in windows also you have host file

other solution will be set up a Internal DNS server to resolve ip to hostname
 
Old 10-07-2010, 11:50 AM   #3
saran_redhat
Member
 
Registered: May 2009
Location: chennai
Posts: 247

Original Poster
Rep: Reputation: 16
samba problem

hi thank for your reply.

but my problem is i having 350 windows workstations.so its
very difficult to change all the hosts file entry. is there any other solutions.
thanks


Quote:
Originally Posted by prayag_pjs View Post
in both server and client in host file do this entry

192.168.1.1 samba-server

in windows also you have host file

other solution will be set up a Internal DNS server to resolve ip to hostname
 
Old 10-07-2010, 12:52 PM   #4
captainhardway
LQ Newbie
 
Registered: Oct 2010
Distribution: Slackware
Posts: 16

Rep: Reputation: 1
Quote:
Originally Posted by saran_redhat View Post
Hi friends,

I have configured one samba server. its working fine. the problem is whe we connect from windows machine , through ipaddress its connected. but i am not able to connect through hostname.
i am using centos5. please help me.
Greetings.

I hope to offer you this to help. Although I am no expert, I do use samba daily. Perhaps if you edit this line in

/etc/samba/smb.conf

# WINS Proxy - Tells Samba to answer name resolution queries on
# behalf of a non WINS capable client, for this to work there must be
# at least one WINS Server on the network. The default is NO.
wins proxy = yes

Then it may accomplish what you are looking for easier than manual editing host files if you have an active WINS server on the network, if not samba can do that job too with this line

# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
wins support = yes

You cannot leave both lines enabled however, you must choose one or the other.

I hope this helps you

Last edited by captainhardway; 10-07-2010 at 01:00 PM.
 
Old 10-07-2010, 01:55 PM   #5
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,138
Blog Entries: 4

Rep: Reputation: 147Reputation: 147
Hi,

Then create a DNS server which can resolve ip to hostname and viceversa.Have an internal dhcp server also through which all the windows system will get the dns ip and all the systems will resolve the ip or hostname.
If you need step to create dns or dhcp server,do let us know!
 
Old 10-08-2010, 04:13 AM   #6
nayoolwin
LQ Newbie
 
Registered: Jun 2010
Location: Myanmar, Yangon
Posts: 4

Rep: Reputation: 0
Smile

Quote:
Originally Posted by saran_redhat View Post
Hi friends,

I have configured one samba server. its working fine. the problem is whe we connect from windows machine , through ipaddress its connected. but i am not able to connect through hostname.
i am using centos5. please help me.



Hello fri

Give you folder permission

Example

comment= folder share
path =/home/share

and

readonly = no
writeable=yes
browseable=yes
guest ok=yes

have a nice day
 
Old 10-08-2010, 04:33 AM   #7
leejohnli
Member
 
Registered: Sep 2010
Posts: 66

Rep: Reputation: 2
or create an entry on your /etc/hosts to map thos ip address into hostname.
 
Old 10-10-2010, 11:05 AM   #8
seeni.rhce
LQ Newbie
 
Registered: Oct 2010
Posts: 1

Rep: Reputation: 0
Hi Frnd,

How to check the samba configuration files will be correct or not without using service command?

Help me
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 - Windows XP Problem (//Samba is not accessible) Covenent Linux - Networking 20 08-11-2011 05:07 PM
How to edit files with xemacs over Samba share? Samba problem? rylan76 Linux - Software 1 11-13-2008 02:00 AM
Samba sharing problem (user permission problem) beikokutn Linux - Software 4 03-11-2008 06:55 AM
samba 3 problem - samba PDC can not join to the domain ananthak Linux - Networking 1 05-21-2006 11:39 AM
when i restart SAMBA,it says:stop samba failed,start SAMBA OK! whepin Linux - Networking 3 12-26-2001 06:54 AM


All times are GMT -5. The time now is 01:25 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration