PDA

View Full Version : [ubuntu] How to config samba's authentication?


tandkzy
October 29th, 2009, 08:26 PM
My samba server use default config file. When I want to access from a XP machine, the system ask me to input username and passwd.
So I try to use smbpasswd program to add user, but it doesn't work.
Same article pointed out that ubuntu use testpam to do the authenticate work for samba, so I want to know how to set this thing.

cariboo907
October 30th, 2009, 05:24 PM
Just type the username and password of an account on the server. You have to set a username and password using the following commands:

sudo smbpasswd -L -a <username>

and it has to be enabled

sudo smbpasswd -L -e <username>