I'm following a simple installation guide and I have a noob question. The software I'm installing is Movim (the guide: https://github.com/movim/movim/wiki/Install-Movim)
The 'Downloading' part of the guide instructs me to: sudo -s -u www-data
When I run this command I get a:
root@linux:/var/www# sudo -s -u www-data
bash: /root/.bashrc: Permission denied
www-data@linux:/var/www$
I have tried changing /etc/passwd from the nologin to /bin/bash:
www-data:x:33:33:www-data:/var/www:/bin/bash
But I get the same error. If I proceed anyway with copying the source code from the repository using git I get:
www-data@linux:/var/www$ git clone https://github.com/movim/movim.git
fatal: could not create work tree dir 'movim'.: Permission denied
What am I doing wrong? Without making the system insecure, what can I do to proceed?
Thanks!
bash: /home/username/.bashrc: Permission denied