•
•
•
•
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
![]() |
•
•
Join Date: Feb 2004
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
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?
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.
•
•
Join Date: Aug 2003
Location: Jersey - You gotta problem wit dat?
Posts: 334
Reputation:
Rep Power: 8
Solved Threads: 5
•
•
Join Date: Feb 2004
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
# 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 *passwd
all*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
# 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 *passwd
all*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
•
•
Join Date: Aug 2003
Location: Jersey - You gotta problem wit dat?
Posts: 334
Reputation:
Rep Power: 8
Solved Threads: 5
•
•
•
•
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
What's more, you deserve to be hacked.
-- former White House cybersecurity czar Richard Clarke
•
•
Join Date: Aug 2003
Location: Jersey - You gotta problem wit dat?
Posts: 334
Reputation:
Rep Power: 8
Solved Threads: 5
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.
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
What's more, you deserve to be hacked.
-- former White House cybersecurity czar Richard Clarke
![]() |
•
•
•
•
•
•
•
•
DaniWeb *nix Software Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
ajax asp blog browsing bt business business software developer development devices erp systems evaluation experiment firefox india intel internet it japan malware mcafee media microsoft mmorpg mobile applications msdn news office online open-source programming project management publishing python rss search security software software selection spyware sql super technology evaluation tips vista voips web wiki windows
- PLEASE HELP ! " GENERIC HOST PROCESS FOR WIN 32 " error =[ ! (Viruses, Spyware and other Nasties)
- google "keyword" question (Search Engine Optimization)
- so-called "simple" host (Web Hosting Deals)
Other Threads in the *nix Software Forum
- Previous Thread: Can't get samba to work!
- Next Thread: Downloading Torrents


Linear Mode