Hacker Newsnew | past | comments | ask | show | jobs | submit | la6471's commentslogin

Help others !!


So HOLD! Specially if you are young,


In your very long forthcoming career you will find very few moments of clarity. Take it from a veteran of this industry - take it easy , have fun , keep the focus on being productive and objective. You cannot control much more than that and there are always many forces at work which you might not even have an idea about. So relax and don’t take it too personally. Good luck!


You have clearly not seen enough of life.


Well that opens up a niche to actually start a rental car business called “Real Reservations” and charge extra for actually reserving the car the customer is willing to pay extra premium for.


You could actually offer discounts and still come out ahead, likely far ahead as you’d be both guaranteeing a car and offering a cheaper car. Win-win, you just lose the terrible customers acting unethically.


Don’t do it while driving


You can't.


What?


It means: Don't code while driving. For safety.


I think they mean don't play a light show while driving. You need things like blinkers, tail lights, etc. to function as intended for safety reasons. Many places have strict laws about exactly what kinds of lights can and can't be on a car in motion.


Doesn’t work while driving. GP was trying to make a Reddit like snark comment due to other stories about games being allowed while driving.


Well, that's less funny. I was thinking of that auto-pilot feature in Tesla. Which gives one time to code.


One have to choose their fights in life. You cannot fight each and everything or you will go insane. - Ancient wisdom.


Click bait title which the author gingerly clarifies in the article to be result of poor security practices. It is obvious isn’t it?


That too, or he asumes everyone runs ec2 instances with Admin role as when people used to run LAMP as root…


> as when people used to run LAMP as root…

When was that, exactly?

I just grabbed by copy of CGI Programming on the World Wide Web by Gundavaram from 1996, and on page 368 it says:

> Most servers are set up to run with the user identification (UID) of "nobody," which means that your scripts have to be world executable. The reason for this is that "nobody" has minimal privileges.

Sure, there would always have been a few idiots who ran everything as root, but my recollection, backed up by the well-respected O'Reilly & Associates here, is that running internet-facing services with restricted privileges was the majority position for at least as long as web servers have had version numbers of 1.0+.


I think this might be a newer problem than 1996 actually. I have seen an awful lot of "modern" (2010s at least) devops which runs everything as root because the developer could not be bothered to understand the unix permissions model. I would guess that focus on security is something that waxes and wanes, rather than something that monotonically becomes more important in the culture.


To be fair, if the only thing that the server runs is the application then root or the application’s normal user doesn’t really matter much.


It should because if you can exploit the root user, it is much easier to use that machine as a lunching point for a secondary attack. Further, root will let you cover your tracks much more easily than an unprivileged user.


Just because you read it in an old book doesn't mean people practice it. Any real world experience outside a Fortune 500 will inform you that.


It takes real effort to run most of the LAMP stack as root. If you don't understand Unix permissions it's not easy. Apache, mysql, (and therefore php) all run by default as a low-privileged user. I have plenty of real world experience and haven't seen apache or mysql run as root outside of embedded devices, and even that was maybe a handful of times.


Another way to say it is that if a book says to not do something, it must be because there are people out there doing the opposite...


But the book isn't saying "You should try to make sure your web server runs as nobody". It's saying "when you're deploying your CGI programs, take into account the fact that the web server you're deploying to likely runs as nobody".


WTF?


NFT.


Good programmers by definition are lazy - Ancient wisdom circa 1980


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: