[Samba] Samba woes with Linux/CentOS/VMWare/Windows

Mark Hull-Richter mhull-richter at datallegro.com
Thu Apr 5 21:11:08 GMT 2007


I have been battling this one for about two weeks now and getting
nowhere.  I even joined this list under another email id and for some
reason cannot post from there, so I will try again here:

 

I have two systems running CentOS 4.4 Plus (Linux 2.6.9-42.0.10 kernel)
as the host OS.  On top of this I am running VMWare Workstation (at
work) and VMWare Server (at home), both with Windows XP as the guest OS
(SP2 at work, SP1 at home).  Yesterday I finally got my work samba set
up so that the Windows guest can see and access the shares and printers
on the CentOS host.  I imported the exact same smb.conf file to my home
box, changed ONLY the workgroup name and the IP addresses involved, and
the Windows guest cannot see the shares at all.  (It can see the host,
but nothing on it.)

 

One difference, which I confess I do not understand, is that at work I
have successfully set the smbpasswd for the guest user, but at home I
get this error:

 

# smbpasswd mark

New SMB password:

Retype new SMB password:

Failed to find entry for user mark.

Failed to modify password entry for user mark

 

Here is my home smb.conf:

 

# Global parameters

[global]

        workgroup = MARKGROUP

        server string = Samba Server

        hosts allow = 192.168.230 192.168.108 69.234.24 127

        printcap name = /etc/printcap

        cups options = raw

        log file = /var/log/samba/%m.log

        max log size = 50

        password server = none

        username map = /etc/samba/smbusers

        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

        interfaces = 192.168.230.1/24 192.168.108.1/24

        remote announce = 192.168.230.255 192.168.108.255

        wins support = yes

        dns proxy = no

        idmap uid = 16777216-33554431

        idmap gid = 16777216-33554431

        template shell = /bin/false

        winbind use default domain = no

 

[homes]

        comment = Home Directories

        valid users = %S

        path = /home/%u

        writeable = yes

        browseable = yes

 

[tmp]

        comment = Temporary file space

        path = /tmp

        writeable = yes

        guest ok = yes

 

[printers]

        comment = All Printers

        path = /var/spool/samba

        printable = yes

        browseable = yes

 

Here is my smbusers file:

 

# Unix_name = SMB_name1 SMB_name2 ...

root = administrator admin

nobody = guest pcguest smbguest

mark = mark

 

The ONLY other difference is that winbindd goes down immediately after
startup at work, but it runs just fine at home - should I even be
running it?

 

What am I missing / not doing right?

Thanks.

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> 
85 Enterprise, 2nd Floor, Aliso Viejo, CA 92656





More information about the samba mailing list