Marc Haber a écrit :
By default, adduser will verify the user against a configurable
regexp, default being the most conservative ^[a-z][a-z0-9\-]*$. The
--force-badname option will change the regexp to a hardcoded
^[-\._A-Za-z0-9]*\$?$, allowing users to happily hang themselves.

To use Samba as a windows (NT) PDC, you must create 'machine' accounts ending with '$', like 'appolo$'. In that case, the --force-badname is helpfull.

PS I guess useradd is more friendly to bad names, because I used it
   in my smb.conf:

   "add machine script = /usr/sbin/useradd
    -d /dev/null -s /bin/false -g machines -c "Machine %u" %u"

Christophe



Reply via email to