Which command -x foo will delete the user foo from the Samba database.

The command ______ -x foo will delete the user foo from the Samba database. (Specify the command only, no path information.)

The command ______ -x foo will delete the user foo from the Samba database. (Specify the command only, no path information.)

Answer: PDBEDIT



Leave a Reply 1

Your email address will not be published. Required fields are marked *


walim

walim

according to the man of pdbedit, this command require -u switch to specify the username

-x This option causes pdbedit to delete an account from the
database. It needs a username specified with the -u switch.
Example: pdbedit -x -u bob

I think the right answer is smbpasswd

-x This option specifies that the username following should be deleted from the local smbpasswd file.