LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-01-2008, 04:39 PM   #1
mitchell2345
Member
 
Registered: Aug 2008
Posts: 55

Rep: Reputation: 16
SMB hostname


Hi,

I am having a problem with my samba server on my workgroup. I want it to be accessable by typing in \\hostname. I dont want to enter a username or password. And i want shares to be writeable. I know this is not secure but its my own LAN.

A copy of my smb.conf file:
Code:
#======================= Global Settings =====================================

[global]

;       workgroup = workgroup
        server string = Samba Server Version %v

;       netbios name = mythtv

;       interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24
;       hosts allow = 127. 192.168.12. 192.168.13.

# --------------------------- Logging Options -----------------------------
        log file = /var/log/samba/log.%m
        max log size = 50
# ----------------------- Standalone Server Options ------------------------

        security = share
        passdb backend = tdbsam


;       map archive = no
;       map hidden = no
;       map read only = no
;       map system = no
;       encrypt passwords = yes
        guest ok = yes
        guest account = myth
        encrypt passwords = no
;       store dos attributes = yes


#============================ Share Definitions ==============================

[music]
        path = /mnt/music
        writeable = yes
;       browseable = yes
        guest ok = yes
;       browseable = yes
Currently if i type in \\ip_address it works great. but i i put in \\hostname i get a login screen.

Please help.

Thanks,
Mitchell
 
Old 12-01-2008, 05:06 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Are you sure the hostname is resolving to the correct IP?

Assuming you are on Windows, start a terminal session (run cmnd) and try

ping hostname

and see if that works and shows it pinging the correct IP
 
Old 12-02-2008, 08:18 AM   #3
mitchell2345
Member
 
Registered: Aug 2008
Posts: 55

Original Poster
Rep: Reputation: 16
well thats interesting....

i ping hostname and i get a public ip back...as a quick test I flushed my dns and put a entry in the HOSTS file (WinXP). Now when i ping hostname i get the right IP. but of course a nslookup bring up the wrong one. Putting \\hostname i still get a login box. So im guessing i need another method of resolving hostname.

On my linux box i do have dnsmasq install and configured as the dns for DHCP.
 
  


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 in Debian, smb.conf: smb passwd file = ?????????? henrnorl Linux - Software 1 10-06-2006 09:43 AM
Creating a SSL connection from smb clients to a smb server scottpioso General 0 11-17-2003 02:33 PM
making smb shares viewable from smb client via web browser scottpioso General 3 11-10-2003 04:25 PM
what to use instead of smb://hostname puru_09 Linux - Networking 2 11-18-2002 07:04 AM
hostname command vs. $HOSTNAME env. variable Silly22 Linux - Networking 2 03-29-2002 05:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:02 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