[Samba] smbpasswd doesn't accept -'s in username?

Gilles gilles.ganault at free.fr
Fri Jul 30 10:13:38 MDT 2010


Since Lighttpd sets /var/www to www-data, I ran this:

# grep -i "www-data" /etc/passwd

# smbpasswd -a "www-data"
New SMB password:
Retype new SMB password:
Unable to modify TDB passwd: NT_STATUS_UNSUCCESSFUL!
Failed to add entry for user www-data.

Can you confirm that Samba doesn't allow dashes in usernames? Is there
a work-around?

Thank you.

More information about the samba mailing list