PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, May 14, 2022

[FIXED] How to solve importmap bootstrap permission denied issue?

 May 14, 2022     ruby-on-rails, ruby-on-rails-7, ubuntu, ubuntu-20.04     No comments   

Issue

A light Ubuntu user here (WSL).

I issued the command in rails 7 (even as the root user) bin/importmap pin bootstrap and ./bin/importmap pin bootstrap but got a permission denied error -bash: bin/importmap: Permission denied.

Importmap is installed and present in .bin/importmap


Solution

Ran into the same issue on Mac OSX Catalina. The importmap file had exactly the same permissions as the other files in the bin directory (bundle, rake, etc.). All of them were set to rw-r--r--. What worked for me was adding executable rights for the owner (i.e. chmod 744 bin/importmap).

Not sure why the importmap file requires different permissions than the other files.



Answered By - ddb
Answer Checked By - Timothy Miller (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing