What does Linux’ chown ‘-R’ parameter mean? [closed]

“Recursive” implies that the operation will be performed for all files and directories (and all files and directories within any directory). So chown -R foo /some/path would change file owner to foo for all files and directories in /some/path p.s. You might have even seen the dictionary entry for recursive: recursive, n: See recursive

Trying to get Postgres setup in my environment but can’t seem to get permissions to intidb

This should work just fine: # sudo mkdir /usr/local/var/postgres # sudo chmod 775 /usr/local/var/postgres # sudo chown construct /usr/local/var/postgres # initdb /usr/local/var/postgres use your username in place of construct. So, if your computer username is WDurant, the code will be: # sudo chown $(whoami) /usr/local/var/postgres

MongoDB only works when run as root on Ubuntu – data directory issue

You created /data/db as root so it has those permissions. You can change the permissions to your user account, or whatever you have mongo running as. chown -R username /data/db or /data You can also set a group chown -R username.groupname The -R does it recursively, so it will affect all the files you’ve created … Read more