Is it bad to have at all times (one) terminal logged in as root? If so, why?
(I leave the window with root terminal usually opened because it's much more comfortable than writing sudo before everything what needs root.)
Just to clarify that this isn't a duplicate question as suggested by system, I'm not talking about running the whole account as root, just one terminal window.
Thank you.
P.S.: sorry for the non-descriptive heading, I for love nor money couldn't think off sth that made more sense.
P.P.S.: This does not mean I'm performing the usual tasks (copying, running normal programs...) as root.
Ok, the main question came up later after posting this - what is the technical difference between executing command as $ sudo command
and executing it as # command
?
To clarify:
I wanted to write into file /sys/devices/platform/asus-nb-wmi/leds/asus::kbd_backlight/brightness
directly. It containes only a number with level of KB backlight.
This failes:
edison23@edison23-N56VM:/sys/devices/platform/asus-nb-wmi/leds/asus::kbd_backlight$ sudo echo 3 > brightness
bash: brightness: Permission denied
This succeeds
root@edison23-N56VM:/sys/devices/platform/asus-nb-wmi/leds/asus::kbd_backlight# echo 3 > brightness
Why?
Thanks
sudo echo
to a root-owned file doesn't work, and what to do instead--see When using sudo with redirection, I get 'permission denied'.