pibakery icon indicating copy to clipboard operation
pibakery copied to clipboard

PiBakery needs root to be run

Open maweki opened this issue 9 years ago • 3 comments
trafficstars

I am running Fedora 24 and I tried to follow the instructions but it fails to launch with an error dialog saying "Please run this application as root or administrator".

Pibakery should use other mechanisms to elevate its privileges for two reasons.

One: If you have a local node installation via nvm which is quite common (since node packages of distributions are usally quite old), using sudo doesn't work without augmenting PATH information

Two: Once wayland is some form of standard on the desktop, graphical applications called via sudo (or any user that's not the one running the Wayland instance) will not have access to the graphics server. Running as root will then be impossible, if you don't want to run a whole privileged graphical session.

maweki avatar Oct 28 '16 12:10 maweki

The main app no longer requires root to run, however writing does require this. The method of elevation in PiBakery v2 is almost identical to older version of PiBakery, as it's the only way that I currently know how to do.

Comments and feedback on other methods of elevation would be appreciated.

davidferguson avatar Jun 29 '18 21:06 davidferguson

Why does writing require sudo? I would have assumed a user executing the script would be able to write to the user's home directory.

gauntface avatar Sep 28 '18 04:09 gauntface

Why does writing require sudo? I would have assumed a user executing the script would be able to write to the user's home directory.

Writing mentioned here is about writing modified raspbian image on SD card so it's not clasic writing file but "dd if=xxx of=yyy" where xxx is image on your drive and yyy is sdcard (/dev/sd? or /dev/mmcblk?).

Picard0147 avatar Oct 20 '18 11:10 Picard0147