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.
rhydian98 wrote:
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.
Assuming you are using either Debian or Raspbian distros the comand ro shutdown would be:
sudo shutdown -h now
for immediate shutdown.
sudo shutdown -r now
for a reboot.
The sudo command allows non root users to make use of many of the functions normally only available to a system admin logged in as root user.
e.g. to edit the boot config file you could use
nano /boot/config.txt
but this will NOT allow you to save the changes.
sudo nano /boot/config.txt
will give you root level access and allow changes to be saved. (nano is a text editor)
PLEASE TAKE CARE WHEN USING ALL THE ABOVE COMMANDS. Remember backup is your best friend.
Hope it helps
Ray
Graham Blackshaw wrote:
Nice answer Ray - short and to the point - you must be in the Training business
Thanks Graham and nicely guessed. I wore many hats over my career and did some training for couple of years. I finally realised it was easier to do the logic and coding than to teach it. Any way I hope the user finds the answer helpful.
Happy new year all
Ray
Graham Blackshaw wrote:
Nice answer Ray - short and to the point - you must be in the Training business
Thanks Graham and nicely guessed. I wore many hats over my career and did some training for couple of years. I finally realised it was easier to do the logic and coding than to teach it. Any way I hope the user finds the answer helpful.
Happy new year all
Ray