How to Create samba users and Verify they can connect
This is the simplest way I know to get samba up and running. This isn’t the most secure, best, smartest, etc. It’s just for testing and getting up and running as quickly as possible.
Add a new user
# smbpasswd -L -a newguy
New SMB password:
Retype new SMB password:
Added user newguy.
Enable the new user
# smbpasswd -L -e newguy
Enabled user newguy.
Verify the user can connect
# smbclient -L thehost -U newguy
Enter newguy's password:
Domain=[MYGROUP] OS=[UNIX] Server=[Samba 3.6.1]
IPC$ IPC IPC Service (Samba Server Version 3.6.1)
newguy Disk Home Directories
Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.6.1]
How easy was that?