Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why do databases require a separate user account when installing?

When I install PostgreSQL in Mac OS, I need to create a user named "postgres' in order to install the DB. I think the same thing applies for many other DBs in Unix. So what is the reason that we need a new user for installation?

like image 345
FrostNovaZzz Avatar asked Sep 12 '26 04:09

FrostNovaZzz


1 Answers

Because it's good idea to run different things as different users so that if somebody breaks in through a security hole in one program they are limited in what they can do to the things that the user for that particular service can do.

like image 152
TomH Avatar answered Sep 13 '26 17:09

TomH



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!