943,816 Members | Top Members by Rank

Ad:
Feb 9th, 2004
0

Samba problem?

Expand Post »
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 1:20 am.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
verninator is offline Offline
3 posts
since Feb 2004
Feb 10th, 2004
0

Re: smb/// no host "null"

Can you post the contents of your smb.conf file so I can have a look-see to see where the problem might be?
Reputation Points: 128
Solved Threads: 8
Posting Whiz
TheOgre is offline Offline
390 posts
since Aug 2003
Feb 10th, 2004
0

samba config file for above

# 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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
verninator is offline Offline
3 posts
since Feb 2004
Feb 10th, 2004
0

Re: smb/// no host "null"

Does anyone suggest upgrading samba to 3.0.2. Will it be more compatable for vmware. What could I expect?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
verninator is offline Offline
3 posts
since Feb 2004
Feb 10th, 2004
0

Re: samba config file for above

Quote 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.)
Reputation Points: 128
Solved Threads: 8
Posting Whiz
TheOgre is offline Offline
390 posts
since Aug 2003
Feb 10th, 2004
0

Re: smb/// no host "null"

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.
Reputation Points: 128
Solved Threads: 8
Posting Whiz
TheOgre is offline Offline
390 posts
since Aug 2003
Nov 29th, 2005
0

Re: smb/// no host "null"

I also meet the same problem.Sometime it work fine.Sometime it dispaly no host could be found.Anyone could tell me the reason?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
tianrongcai is offline Offline
1 posts
since Nov 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Linux Applications and Software Forum Timeline: Can't get samba to work!
Next Thread in Linux Applications and Software Forum Timeline: Downloading Torrents





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC