![]() ![]() If you want to store the password in a file you can use the cat command instead of echo like the following example. The -S (stdin) option allow the sudo command to read password from a standard input instead of a terminal device. The root user is allowed to change the root user’s password, so the password changes. So sudo passwd root tells the system to change the root password, and to do it as though you were root. Usually you’d use this to run stuff as root, though you can run stuff as other users too.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |