Network
The smbpasswd command
Manages Samba user passwords (with -a it adds one).
Most useful options
-aAdd a userCopy-ready examples
$ sudo smbpasswd -a alumnoAdd user alumnoYou can try them in the browser terminal: it does not touch your computer.
Typical mistakes
- The user must exist in the system first (useradd).
FAQ
What does smbpasswd do?
It manages Samba passwords for users.
How do I add a user?
With sudo smbpasswd -a user.
More Network commands
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