Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

From searching, I have found a lot of suggestions for synchronizing the unix account and the samba account using smbpasswd, but how do I tell which accounts need synchronizing, and which accounts are already synchronized? If I cannot get this information, is it at least possible to get a list of those user accounts that have a samba password set?

share|improve this question

Try this command in the terminal:

sudo pdbedit -w -L | awk -F: '{print $1}'

For more options refer this link.

share|improve this answer
Thanks, but how do I know which accounts are synchronized, and which need synchronizing? – user8979 Jan 30 '11 at 9:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.