Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4919

Troubleshooting • Re: I messed up, big time where is user "pi"!?

$
0
0
From root you can do

Code:

adduser --uid 1000 --gid 100 pi
That should be sufficient to recreate the user. The other settings (home directory and shell) should be created automatically with the default settings.

But you will probably also need to add the user to various groups

Code:

usermod -a -G adm,dialout,sudo,cdrom,audio,video,plugdev,games,users,input,render,netdev,gpio,i2c,spi pi
There may be others you need. That's going by the list of groups one of my users is in.

Statistics: Posted by rpdom — Sun Mar 31, 2024 10:50 am



Viewing all articles
Browse latest Browse all 4919

Trending Articles