Hello
When i got my RPI working it would not let me poweroff unless i was a "superuser". how do I become a superuser on the rpi.
Hello
When i got my RPI working it would not let me poweroff unless i was a "superuser". how do I become a superuser on the rpi.
If you use sudo adduser to add a new user and you want that user to be able to use sudo, you should add them to the sudo group. There are a number of ways to do that, like with sudo adduser their_username sudo. The official way to add someone to a bunch of groups at once would be sudo vigr (if you know how to use vi), or I just use sudo nano /etc/group (which you would not normally do if more than one admin could edit the file at the same time). /etc/group is a comma separated list of users for each group like:
video:x:44:pi,efflandt
Note that:
sudo halt is same as sudo shutdown -h now
sudo reboot is same as sudo shutdown -r now
If you use sudo adduser to add a new user and you want that user to be able to use sudo, you should add them to the sudo group. There are a number of ways to do that, like with sudo adduser their_username sudo. The official way to add someone to a bunch of groups at once would be sudo vigr (if you know how to use vi), or I just use sudo nano /etc/group (which you would not normally do if more than one admin could edit the file at the same time). /etc/group is a comma separated list of users for each group like:
video:x:44:pi,efflandt
Note that:
sudo halt is same as sudo shutdown -h now
sudo reboot is same as sudo shutdown -r now