Table of Contents
Creating new users and groups
The command “adduser user_name” will add a user. A group of the same name will be created and assigned as the primary group of the user. To create a different group, use the “addgroup group_name” command. Usage for both commands is displayed if no arguments are given.
NOTE: Preserve users and groups by adding etc/group, etc/passwd, and etc/shadow to /opt/.filetool.lst.
Setting Passwords
There are three ways to set user passwords in Tiny Core Linux: secure boot parameter - This indicates TC should request and set passwords for the root and tc users during the boot process. It is noted on the bootcodes page: passwd - The BusyBox passwd utility. Usage is here. chpasswd - The BusyBox chpasswd utility. Usage is here.
NOTE: Preserve passwords by adding etc/shadow to /opt/.filetool.lst.
Automatic Login
The standard /etc/inittab file specifies rungetty should autologin as the tc user. To disable this, use the noautologin boot parameter. Then, either 1) restore passwords from backup, or 2) use the secure boot parameter to set the passwords. The tc user has a blank password by default.
Sudo
The /etc/sudoers file controls how sudo operates. This link has more information. NOTE:
- Use the “visudo” command to edit this file. Do not edit it directly.
- Do not remove or modify the root and tc user entries. Tiny Core will fail to operate correctly.
- Preserve modifications by adding etc/sudoers to /opt/.filetool.lst.
Backup
Remember you must make a backup to preserve the files in /opt/.filetool.lst