I know this is a little off topic (not as usual, dammit!), but I figure at least one of y'all can handle this one. I have tried to configure my CentOS4.4 Plus desktop for samba sharing with the VMWare Windows that runs on it. However, no matter what I've done so far, I can't get the Windows to recognize this machine as a legitimate network destination. Here's my samba config file: [root at mhullrichter shared]# cat /etc/samba/smb.conf # Global parameters [global] server string = Samba Server security = SHARE log file = /var/log/samba/%m.log max log size = 50 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 printcap name = /etc/printcap dns proxy = No idmap uid = 16777216-33554431 idmap gid = 16777216-33554431 cups options = raw [homes] comment = Home Directories read only = No browseable = No [public] comment = Data path = /home/mark force user = mark force group = users read only = No guest ok = Yes [printers] comment = All Printers path = /var/spool/samba printable = Yes browseable = No It passes testparm, the smb daemons are up and running: [root at mhullrichter shared]# psg smbd root 2751 1 0 11:44 ? 00:00:00 smbd -D root 2752 2751 0 11:44 ? 00:00:00 smbd -D I noticed that neither the nmbd nor winbindd daemons are running - dunno why, the startup showed [ OK ]. But in the Windows, it can see my machine but can't connect to it - what am I missing? Mark Hull-Richter Linux Kernel Engineer (949) 680-3082 - Office (949) 680-3001 - Fax (949) 632-8403 - Mobile mhull-richter at datallegro.com <mailto:mhull-richter at datallegro.com> www.datallegro.com <http://www.datallegro.com> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20070323/1b84975b/attachment.html>
From: Mark Hull-Richter [mailto:mhull-richter at datallegro.com] Sent: Friday, March 23, 2007 12:15 PM To: CentOS mailing list Subject: [CentOS] Samba config for Windows on VMWare I know this is a little off topic (not as usual, dammit!), but I figure at least one of y'all can handle this one. I have tried to configure my CentOS4.4 Plus desktop for samba sharing with the VMWare Windows that runs on it. However, no matter what I've done so far, I can't get the Windows to recognize this machine as a legitimate network destination. Here's my samba config file: [root at mhullrichter shared]# cat /etc/samba/smb.conf # Global parameters [global] server string = Samba Server security = SHARE log file = /var/log/samba/%m.log max log size = 50 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 printcap name = /etc/printcap dns proxy = No idmap uid = 16777216-33554431 idmap gid = 16777216-33554431 cups options = raw [homes] comment = Home Directories read only = No browseable = No [public] comment = Data path = /home/mark force user = mark force group = users read only = No guest ok = Yes [printers] comment = All Printers path = /var/spool/samba printable = Yes browseable = No It passes testparm, the smb daemons are up and running: [root at mhullrichter shared]# psg smbd root 2751 1 0 11:44 ? 00:00:00 smbd -D root 2752 2751 0 11:44 ? 00:00:00 smbd -D I noticed that neither the nmbd nor winbindd daemons are running - dunno why, the startup showed [ OK ]. But in the Windows, it can see my machine but can't connect to it - what am I missing? Mark Hull-Richter Linux Kernel Engineer (949) 680-3082 - Office (949) 680-3001 - Fax (949) 632-8403 - Mobile <mailto:mhull-richter at datallegro.com> mhull-richter at datallegro.com <http://www.datallegro.com> www.datallegro.com Mark, Have you added the samba workstation to your domain/workgroup?? I don't see any security settings in your conf file. HTH Thanks! Mark Schoonover *** Winner of the 2008 Best Psychic Award IS Manager American Geotechnical - California, Nevada and Arizona V-> 858.450.4040 F-> 714.685.3909 C-> 858.472.3816 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20070323/7a5079f1/attachment.html>
On 3/23/07, Mark Hull-Richter <mhull-richter at datallegro.com> wrote:> > I have tried to configure my CentOS4.4 Plus desktop for samba sharing with > the VMWare Windows that runs on it. However, no matter what I've done so > far, I can't get the Windows to recognize this machine as a legitimate > network destination.I think the one thing you might be missing is a "workgroup" configuration. My global section looks like this: [global] workgroup = workgroup server string = CentOS Samba Server printcap name = /etc/printcap load printers = yes cups options = raw log file = /var/log/samba/%m.log max log size = 50 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 dns proxy = no template shell = /bin/false password server = None username map = /etc/samba/smbusers winbind use default domain = no The workgroup of the windows machine and the centos machine have to match. The default workgroup on windows is "mygroup" IIRC. Note also that I don't have a "security" setting but I don't think that makes a difference.> I noticed that neither the nmbd nor winbindd daemons are running ? dunno > why, the startup showed [ OK ].You might want to find out why. I don't think winbindd matters, but nmbd could be important.
On Fri, 23 Mar 2007 15:14:54 -0400, Mark Hull-Richter wrote:> > But in the Windows, it can see my machine but can't connect to it - what > am I missing?When you say "can't connect", what exactly do you see? For example, if you enter \\machinename\homes or \\IPaddress\homes what message do you get from Windows? Akemi
________________________________________ From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On Behalf Of Mark Schoonover Sent: Friday, March 23, 2007 12:24 PM To: 'CentOS mailing list' Subject: RE: [CentOS] Samba config for Windows on VMWare ? Mark, ?? Have you added the samba workstation to your domain/workgroup?? I don't see any security settings in your conf file. HTH Well, I had it in the "master" file, but testparm stripped it out, so I added it back in. the security = share line is already there. Still working it....
Mark Hull-Richter wrote:> > I know this is a little off topic (not as usual, dammit!), but I > figure at least one of y?all can handle this one. > > I have tried to configure my CentOS4.4 Plus desktop for samba sharing > with the VMWare Windows that runs on it. However, no matter what I?ve > done so far, I can?t get the Windows to recognize this machine as a > legitimate network destination. > > Here?s my samba config file: > > [root at mhullrichter shared]# cat /etc/samba/smb.conf > > # Global parameters > > [global] > > server string = Samba Server > > security = SHARE >security=SHARE is for old school win95 networks, with global passwords on each share, I'd avoid that entirely. use `security=USER`, then read up on smbpasswd. create linux user accounts for each Windows user (same username as they log onto Windows with), then use smbpasswd to set their Samba password to match their Windows login password. Samba can't use their Linux password as SMB networking and Linux use completely different password hashes.
Date: Sat, 24 Mar 2007 12:21:24 -0500 From: Les Mikesell <lesmikesell at gmail.com> Subject: Re: [CentOS] Samba config for Windows on VMWare To: CentOS mailing list <centos at centos.org> Mark Hull-Richter wrote:>>>> The vmware client is using a bridged Ethernet adapter (meaning same as >> the host, I think). > >"Bridged" means the guest shares the host's network adapter directly but >it looks like a completely different system to everyone else including >the host - that is, it needs its own IP address on the same subnet. > >Once that is set up, sharing files is exactly the same as with any other >machine on the network. >Okay, I understand that. However, my computer is linked up to a DSL modem and has no subnet, per se, and the DSL host assigns my IP address. So: 1) Is tehre a way I can get around this and give my Windows VM its own IP address (and how)? 2) If not, how would I set up one of the other ethernet types to make this work? NAT doesn't look right for this, and I don't know enough to do a custom network, so that hints to me that host-only might work, but that calls for a vmnet1 device on the host, and I know nothing about this (but I will look - just hoped for a quickie answer here...). Thanks.
----- Original Message -----> Date: Sun, 25 Mar 2007 20:53:32 -0700 > From: "Bart Schaefer" <barton.schaefer at gmail.com> > Subject: Re: [CentOS] Samba config for Windows on VMWare > To: "CentOS mailing list" <centos at centos.org> > > NAT is in fact exactly what you want here, I think. VMware will > assign an IP from one of the unrouted ranges that are reserved for > LANs for cummunication between the host and guest, but any connections > from the guest to the internet will be translated to/from the host's > DSL IP.Thanks - tried it and got this popup window: Could not open /dev/vmnet8: no such file or directory.Virtual device Ethernet0 will start disconnected. Do I just go ahead and mknod /dev/vmnet8 or is there more to it? Better, where is a good (and hopefully simple) reference for this? Thanks (again). mhr