Network

The smbpasswd command

Manages Samba user passwords (with -a it adds one).

Syntax

sudo smbpasswd -a <usuario>Try it in the terminal →

Most useful options

-aAdd a user

Copy-ready examples

$ sudo smbpasswd -a alumnoAdd user alumno

You can try them in the browser terminal: it does not touch your computer.

Typical mistakes

  • The user must exist in the system first (useradd).

Related commands

FAQ

What does smbpasswd do?

It manages Samba passwords for users.

How do I add a user?

With sudo smbpasswd -a user.

Learn to actually use it

The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.

Start the free course