After installing CentOS 5.2 x64, webmin 1.420, and vmware server 2.0.0, I tried to get samba working.
Getting samba to work correctly is the easiest via the webmin interface. Webmin actually makes almost everything easier. I like it when computers are made easier. Thank you, webmin. You can find how to install webmin by searching for webmin. Too bad I don’t get paid for the number of times I can type webmin. I’d be rich. Webmin.
Back to the task at hand… I set samba up to work:
yum install samba
But it’s not set to automatically start, so we have to use webmin ($$$) to get it to auto start. Samba requires two services to run:
1.) SMB – starts and stops the Samba smbd and nmbd daemons used to provide SMB network services.
2.) winbind – starts and stops the Samba winbind daemon.
I set both of them to startup when the system starts.
Then I set the permissions on a folder (/var/lib/virtual machines/) which I called vmware. They are/were setup correctly. But I couldn’t attach from my windows box to the samba share. Permission denied.
So then I tried to chmod -R 777 /Virtual\ Machines
Didn’t work.
As a final attempt, I tried to smbpasswd (username)
Typed in a new password
Failed to find entry for user (username)
Failed to modify password entry for user (username)
Webmin failed me! It said that it converted the users for me, but obviously it hasn’t.
So here’s the fix:
smbpassword -a (username)
New SMB password:
Retype new SMB Password
Added user (username)
And then, like magic, samba started working! Whooo!