Quantcast
Channel: Active questions tagged 22.04 - Ask Ubuntu
Viewing all articles
Browse latest Browse all 4421

Installing postgresql. Last line says: 'could not change directory to "home/user": Permission denied'

$
0
0

I am getting ready for a coding bootcamp and have followed certain instructions to install Linux (Ubuntu v22.04). The installation went fine but then I am told to enter the following command into the terminal:

sudo apt-get update && sudo apt-get upgrade && sudo apt-get install git && sudo apt-get install curl postgresql postgresql-contrib && touch ~/.bash_profile && curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash && source ~/.nvm/nvm.sh && nvm install node && nvm use node && sudo -u postgres createuser --superuser $USER && sudo -u postgres createdb $USER && git config --global credential.helper store

As I understand, this is to install Git, NVM, Node and Postgresql, and it seems the first 3 installed correctly, however, the last lines are as follows:

Now using node v20.4.0 (npm v9.7.2)could not change directory to "/home/user": Permission deniedcould not change directory to "/home/user": Permission denied

I think this is in relation to postgresql, however I am at a total loss on if this is an issue or not. The guide I am following does not say anything about it and this is my first time using Linux of any kind so I am unfamiliar with the terminology.

Would appreciate any advice/explanation as necessary.


Viewing all articles
Browse latest Browse all 4421

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>