username map in samba
samba 3.00 on redhat8
1. I have two users in system. one is root, the other is robert,
2. I add two users into /etc/samba/smbpasswd, one is root, the other is robert,
3. I add the line into /etc/samba/smbusers
root = robert
4. from windows xp, I use
net use z: \\sambaserver\datadir
a. I login with the user robert, and see the shared folder
I can't add or delete files in the folder
b. I login with the user root and see the shared folder
I can add or delete files, even do everything in the folder
I assume that during login session, robert has been mapped to root, so I should have all rights that root has, but in fact I can't, why?
5. I delete both roberts, things go worse. robert can't log into samba folder.
Thanks for your analysis!