___  ____ ____ _  _ ____ ____    _  _ ____ _  _ ____ ____    ____ ____ ____ ___ ____ ____ _   _ 
|__] |  | |  | |\/| |___ |__/ __ |\/| |__| |_/  |___ |__/    |___ |__| |     |  |  | |__/  \_/  
|__] |__| |__| |  | |___ |  \    |  | |  | | \_ |___ |  \    |    |  | |___  |  |__| |  \   |  
                                                                                                
 

I learned not to run my nginx as root

I'm mostly using Android to do my daily stuffs than my laptop. But when I start to use laptop, I'll rarely use my phone. 🙃
I was running nginx in Termux on port 80 some reason. Since SeLinux feature is set as permissive, it's not stopping me from doing that. So to start server with that port, I must be root. So, I start nginx as root , which means now it has the role of root. It's like a real root user in my host which can access my host files and what not. So, atleast a docker is more appreciated to run it. Or more abstractions are possible via Selinux, Apparmor or Firejail those can have custom profiles for more security. And, I found a good article > here <. It's a Medium article. 
Happy leaning! 😉
 
 

About Me | Sub to RSS | E-Mail | Podcasts

Copyright © techcraft.tk a.k.a blog.bensh4.tk
Twitter
GitHub
CyberHunk