How to Add a Member to an SMB Group

  1. Become an administrator.
  2. Add a user to the SMB group.
    $ smbadm add-member -m member-name [[-m member-name] ...] group-name

    member-name can be specified as [domain-name\]username or [domain-name/]username. The domain name is the domain in which the user can be authenticated. By default, the domain name is the name of the domain that you joined.

    The backslash (\) is a shell special character and must be quoted. For instance, escape the backslash with another backslash: domain\\username. For more information about handling shell special characters, see the man page for your shell.

    For example, to add user userone of the sales domain to the wsales group, type:

    $ smbadm add-member -m sales\\userone wsales

    You add a local user to an SMB group in workgroup mode by specifying the Oracle Solaris user name. For example, to add local user userone of the solarsystem host to the wsales group, type:

    $ smbadm add-member -m userone wsales