[Samba] What is the purpose of "add user script"?
garydale at rogers.com
Mon Mar 30 03:37:22 GMT 2009
> Hi All,
> I am confused. In one of the examples of a PDC,
> the following smb.conf parameter is given:
> add user script = /usr/sbin/useradd -m -G users '%u'
> If you have "passdb backend = tdbsam" and the way
> to add users to "tdbsam" is "pdbedit -a -u username",
> what is the purpose of the "add user script"?
> I am thinking it is to add the user to /etc/passwd,
> but "why"? I add my users from the command line.
> I invoke "useradd" then "pdbedit".
> What is the purpose of the "add user script"?
> Many thanks,
Add users allows you to add Windows users from Windows. Otherwise, you
wouldn't have Unix accounts to link them to.
More information about the samba