Which of the following commands should you use to add a user named alice to the smbpasswd file?
  1. smbuseradd alice
  2. smbpasswd alice
  3. smbpasswd -a alice
  4. useradd -a alice
Explanation
Answer - C - You should use the smbpasswd -a alice command to add a user named alice to the smbpasswd file.

Key Takeaway: The smbpasswd command is used to change a user’s smb password in the smbpasswd file. The smbpasswd -a alice command will add the alice user to the smbpasswd file. smbpasswd allows a user to change their encrypted smb password which is stored in the smbpasswd file. The -add option specifies that the username following should be added to the smbpasswd file, with the new password typed.
Was this helpful? Upvote!
Login to contribute your own answer or details

Top questions

Related questions

Most popular on PracticeQuiz