Search notes:

Shell command: chpasswd

chpasswd can be used to change passwords in batch mode.
The following snippet changes the password of the user fred to secretGarden.
Apparently, it is useful if sudo was run recently and thus, root's password needs not be entered here.
echo 'fred:secretGarden' | sudo passwd

See also

Shell commands such as passwd and chgpasswd
/etc/passwd

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Linux/sh...', 1743432774, '18.224.212.19', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Linux/shell/commands/chpasswd(48): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78