Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
wiki:passwd [2012/08/29 05:06] – [Tinycore Passwords] fixed typo kennedywalker | wiki:passwd [2022/09/21 17:10] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Tinycore Passwords ====== | ||
+ | |||
+ | If you want to prevent other people from logging into your computer, you can add passwords to Tinycore. | ||
+ | |||
+ | If you are using the Extlinux bootloader, another option is to add passwords to Extlinux. For more information, | ||
+ | see [[extlinux_passwd|Extlinux Passwords]]. | ||
+ | |||
+ | ==== Add Passwords to Tinycore ==== | ||
+ | |||
+ | To add a password for user tc, open the terminal and type | ||
+ | |||
+ | < | ||
+ | |||
+ | To add a password for root, type | ||
+ | |||
+ | < | ||
+ | |||
+ | The procedure described above stores the password using 8-byte parity, so the password will be 8 characters long, i.e. " | ||
+ | Use " | ||
+ | (see http:// | ||
+ | |||
+ | ==== Save Passwords using Backup ==== | ||
+ | |||
+ | If you use Backup, to save passwords, add | ||
+ | |||
+ | < | ||
+ | |||
+ | to / | ||
+ | |||
+ | Backup when shutting down the computer. | ||
+ | |||
+ | ==== Save Passwords using Persistent opt ==== | ||
+ | |||
+ | If you use persistent opt, open the terminal and type | ||
+ | |||
+ | < | ||
+ | |||
+ | Add the following to / | ||
+ | |||
+ | < | ||
+ | sudo cp /opt/shadow / | ||
+ | |||
+ | Note that this will apply group staff and mode g+w to /opt/shadow on each boot, as it's the case with every file in /opt. | ||
+ | |||
+ | ==== Use Password to Log In ==== | ||
+ | |||
+ | To be prompted for Username and Password when logging in, add the bootcode | ||
+ | |||
+ | < | ||
+ | |||
+ | to the bootloader. | ||
+ | |||
+ | ==== Don't Log In as Root ==== | ||
+ | |||
+ | Log in as tc, not as root. | ||
+ | |||
+ | If you want to perform root tasks, use sudo before commands. | ||
+ | |||
+ | ==== bootsync.sh and bootlocal.sh ==== | ||
+ | |||
+ | If you want commands executed every time you start the computer, add them to / | ||
+ | |||
+ | / | ||
+ | |||
+ | / | ||
+ | |||
+ | Most commands should go in / | ||