Pi Awesome

Reference and guides to build kick ass raspberry pi projects.

View the Project on GitHub codingforentrepreneurs/Pi-Awesome

Add New User on Pi or Linux

1. Create User

sudo useradd -m tony

2. Set User Password

sudo passwd tony

3. Add user to groups

sudo usermod -a -G www-logs,www-git,www-data tony

The groups www-logs and www-git where created at other times. In the Pi Server tutorial series, we created these groups for special permissions. Read more about creating groups and user permissions here

4. Reboot

sudo reboot

To ensure all change take effect, reboot your server.

5. Verify with Password via ssh

ssh tony@raspberrypi

If you setup ssh keys like we did here you won’t need to use your password. To force a password to be used do this instead:

ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no tony@raspberrypi