Skip to content

Latest commit

 

History

History
59 lines (51 loc) · 772 Bytes

08-manage-users.md

File metadata and controls

59 lines (51 loc) · 772 Bytes

Manage Users

How to Manage Users on Raspberry Pi 3 Model B+


Current User


pi@raspberry:~ $ whoami

Switch to Another User


pi@raspberry:~ $ sudo su - USER-NAME
password:
USER-NAME@raspberry:~ $ exit
pi@raspberry:~ $

Switch to Root User


pi@raspberry:~ $ sudo su -
root@raspberry:~ $

Create New User


pi@raspberry:~ $ sudo su -
root@raspberry:~ $ adduser NEW-USER-NAME

Add User to Super User Group


pi@raspberry:~ $ sudo su -
root@raspberry:~ $ usermod -aG sudo USER-NAME

Delete User


deluser –force –remove-home –remove-all-files USER-NAME

List All Users


cd /home
ls