[CentOS] How do I change passwords / remove users for Samba?

Tue Jun 23 10:49:09 UTC 2009
Kevin Thorpe <kevin at pibenchmark.com>

On 23/06/2009 11:39, Kevin Thorpe wrote:
> On 23/06/2009 11:34, Kevin Thorpe wrote:
>    
>> Sorry, I've still got problems.
>>
>> I'm trying to set up a new Samba user. I've done useradd to put them in
>> passwd, I've done smbpasswd to set a samba password. They're in the
>> required group (spendtrak) for this share. I've even restarted samba.
>> When I try and connect to the share with 'connect using a different
>> username' form XP it just keeps asking me for the password. I can
>> connect to the share as myself, but not if I define myself as the
>> 'different user name'. Is there a log anywhere which will tell me what's
>> going wrong with the login.
>>
>> Sorry, but this is frustrating the hell out of me.
>>
>>
>>     # share for spendtrak
>> [spendtrak]
>>            comment = Spendtrak Files
>>            path = /home/spendtrak
>>            writable = yes
>>            printable = no
>>            valid users = +spendtrak
>>            force group = spendtrak
>>            create mode = 0660
>>            create mask = 0660
>>            force create mode = 0660
>>            directory mode = 0770
>>            directory mask = 0770
>>            force directory mode = 0770
>>            inherit permissions = yes
>>
>>
>>      
> Well smbclient seems to work fine so I guess it's Windows at fault (as
> per bloody usual).
Well I finally worked it out. Reboot Windows then it works. Bah! Stupid 
Microsoft. Wasted half my morning because Windows is broken.