Home  >  Q&A  >  body text

What are the big problems when using root as the development user under Linux?

Except risks like rm / -rf. What questions are there?

世界只因有你世界只因有你2701 days ago841

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-05-27 17:46:32

    It’s very bad, and it’s forbidden.
    With root privileges, you can control the entire server, and you can change any configuration at will.
    If your code has loopholes, then you are in trouble....

    In addition, after release, if your project has actions related to interacting with the system, there may be various wonderful problems, such as permission issues (the online environment will definitely not let you use root)

    reply
    0
  • 漂亮男人

    漂亮男人2017-05-27 17:46:32

    I think the convenience outweighs the risks. The development environment is not that expensive. As for rm and other commands, you can use alias -i and there will be prompts

    reply
    0
  • Cancelreply