Watch out for this bug when configuring samba using the old fashion smb.conf in ubuntu 10.4.
By default, the samba password is reset to the system password of that user every time you login.
I noticed that although it does this you still need to add the users with smbpasswd -a so they work in samba.