User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the *nix Software section within the Tech Talk category of DaniWeb, a massive community of 425,913 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,787 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our *nix Software advertiser: Lunarpages Linux Web Hosting
Views: 3592 | Replies: 6
Reply
Join Date: Feb 2004
Posts: 3
Reputation: verninator is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
verninator verninator is offline Offline
Newbie Poster

Help Samba problem?

  #1  
Feb 9th, 2004
using redhat 9.0 , using swat to configure samba (localhost:901), it seems to work. I get the error message "Couldn't display smb/// because no host "null" could be found. Check that the spelling is correct and that your proxy settings are correct."
I am using vmware 4.0.5 and windows xp is the host op sys.
In my network places samba sever is viewed but I can't make it through the password screen to open the shares. I ping from either end and have success. What to do?
Last edited by verninator : Feb 10th, 2004 at 12:20 am.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2003
Location: Jersey - You gotta problem wit dat?
Posts: 334
Reputation: TheOgre has a spectacular aura about TheOgre has a spectacular aura about TheOgre has a spectacular aura about 
Rep Power: 8
Solved Threads: 5
TheOgre's Avatar
TheOgre TheOgre is offline Offline
Posting Whiz

Re: smb/// no host "null"

  #2  
Feb 10th, 2004
Can you post the contents of your smb.conf file so I can have a look-see to see where the problem might be?
If you spend more on coffee than on IT security, you will be hacked.
What's more, you deserve to be hacked.
-- former White House cybersecurity czar Richard Clarke
Reply With Quote  
Join Date: Feb 2004
Posts: 3
Reputation: verninator is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
verninator verninator is offline Offline
Newbie Poster

samba config file for above

  #3  
Feb 10th, 2004
# Samba config file created using SWAT
# from Linux (127.0.0.1)
# Date: 2004/02/07 19:22:13

# Global parameters
[global]
netbios name = LINUX
server string = samba server
encrypt passwords = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwdall*authentication*tokens*updated*successfully*
username map = /etc/samba/smbusers
unix password sync = Yes
log file = /var/log/samba/%m.log
max log size = 0
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = No
username = owner
valid users = owner
admin users = owner
guest ok = Yes
printing = cups

[homes]
comment = Home Directories
valid users = %S
read only = No
create mask = 0664
directory mask = 0775
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

[root directory]
comment = root
path = /
read only = No

[home]
comment = home
path = /home
read only = No

[cdrom]
comment = cdrom
path = /mnt/cdrom
Reply With Quote  
Join Date: Feb 2004
Posts: 3
Reputation: verninator is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
verninator verninator is offline Offline
Newbie Poster

Re: smb/// no host "null"

  #4  
Feb 10th, 2004
Does anyone suggest upgrading samba to 3.0.2. Will it be more compatable for vmware. What could I expect?
Reply With Quote  
Join Date: Aug 2003
Location: Jersey - You gotta problem wit dat?
Posts: 334
Reputation: TheOgre has a spectacular aura about TheOgre has a spectacular aura about TheOgre has a spectacular aura about 
Rep Power: 8
Solved Threads: 5
TheOgre's Avatar
TheOgre TheOgre is offline Offline
Posting Whiz

Re: samba config file for above

  #5  
Feb 10th, 2004
Originally Posted by verninator
username map = /etc/samba/smbusers
....
username = owner
valid users = owner
admin users = owner

[homes]
comment = Home Directories
valid users = %S
read only = No
create mask = 0664
directory mask = 0775
browseable = No

[root directory]
comment = root
path = /
read only = No

[home]
comment = home
path = /home
read only = No

First off, I HIGHY RECOMMEND NOT SHARING OUT THE ENTIRE ROOT PARTITION! This is VERY BAD! If you want to share the filesystem to get used to the layout, share it as READ ONLY.

Also, the following three lines are safe to comment out - they might be causing grief:

	username = owner
	valid users = owner
	admin users = owner

Also, if you don't have a usermap (username map = /etc/samba/smbusers) it's safe to comment that line out.

It also appears you're sharing out the /home directory as well as each user's $HOME directory. If it's just you who'll be accessing the files, I would just keep the [Homes] section and create a [Public] section and use that as a file dump. That way, any files you want to share, you can copy/move from/to the public filedump and leave the rest of the filesystem intact.

Here's one of my smb.conf files to give you an example:

# Samba config file for Mars.geekis-kahn.net # FreeBSD 4.9-RELEASE # Samba 2.2.8 # Global parameters [global] workgroup = GEEKIS-KAHN.NET netbios name = MARS server string = FreeBSD Web/Game Server security = SHARE encrypt passwords = Yes update encrypted = Yes log file = /var/log/samba.log max log size = 150 load printers = No os level = 33 preferred master = No local master = No domain master = No hosts allow = 192.168.0. hide dot files = No [homes] comment = Home Directories read only = No browseable = No [Public] path = /usr/home/public read only = No guest ok = Yes [Geekis-Kahn.net] path = /usr/local/www/geekis-kahn.net read only = No guest ok = Yes [Game Servers] path = /usr/compat/linux/usr/games read only = No guest ok = Yes

Don't forget to create the directories that will be shared, and chmod 777 /path/to/directory (or whatever permissions you want.)

Please let me know if this helps you out at all.

I'm also writing an updated Samba HOWTO that should be completed towards the end of this week, which will include configuring smb.conf both with SWAT and from the command line, and a description of what most of the variables are for (and how/when to use them.)
If you spend more on coffee than on IT security, you will be hacked.
What's more, you deserve to be hacked.
-- former White House cybersecurity czar Richard Clarke
Reply With Quote  
Join Date: Aug 2003
Location: Jersey - You gotta problem wit dat?
Posts: 334
Reputation: TheOgre has a spectacular aura about TheOgre has a spectacular aura about TheOgre has a spectacular aura about 
Rep Power: 8
Solved Threads: 5
TheOgre's Avatar
TheOgre TheOgre is offline Offline
Posting Whiz

Re: smb/// no host "null"

  #6  
Feb 10th, 2004
Samba 3.x is designed to replicate Active Directory, as well as work as a PDC with Windows 2000 and XP. Previous versions (2.x) emulated a WINNT 4.0 Server that worked well as a PDC for WINNT 4.0 and Windows 95/98, but didn't cut the mustard with 2000/XP. If you're not going to use Samba as a PDC for your network, staying with 2.x should be fine (I still use 2.2.8 ...)

Regarding VMWare, you probably won't see much of a difference upgrading to 3.x unless you're testing the Active Directory changes, which I'm guessing you won't be doing, at least for now.
If you spend more on coffee than on IT security, you will be hacked.
What's more, you deserve to be hacked.
-- former White House cybersecurity czar Richard Clarke
Reply With Quote  
Join Date: Nov 2005
Posts: 1
Reputation: tianrongcai is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
tianrongcai tianrongcai is offline Offline
Newbie Poster

Re: smb/// no host "null"

  #7  
Nov 29th, 2005
I also meet the same problem.Sometime it work fine.Sometime it dispaly no host could be found.Anyone could tell me the reason?
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb *nix Software Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the *nix Software Forum

All times are GMT -4. The time now is 8:09 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC