3
rated 0 times
[
3]
[
0]
/ answers: 1 / hits: 751
/ 2 Years ago, wed, december 8, 2021, 8:47:27
Some commands like npm
, composer
, git
, etc are not recommended run as root user. But sometimes I forget to run it when I log in as root, and my coworkers also sometimes do that too. That makes some files/dirs unable to be accessed by non-root users, which sometimes makes our website/apps errors. Is there any way to disable those commands when run as a root user? at least give warning/confirmation before running those commands.
More From » command-line