Shiny server gives "Page not found" selectively to a specific parent directory

shiny apps run under shiny user not rstudio user that is the problem

You can reset your shiny permissions with this

sudo groupadd shiny-apps
sudo usermod -aG shiny-apps #your-user#
sudo usermod -aG shiny-apps shiny
cd /srv/shiny-server
sudo chown -R #your-user#:shiny-apps .
sudo chmod g+w .
sudo chmod g+s .

Replace #your-user# with your actual user name