Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running gem list --local complains about world-writable fnm directory in $PATH #1158

Open
simonwhitaker opened this issue Jun 2, 2024 · 2 comments · May be fixed by #1159
Open

Running gem list --local complains about world-writable fnm directory in $PATH #1158

simonwhitaker opened this issue Jun 2, 2024 · 2 comments · May be fixed by #1159

Comments

@simonwhitaker
Copy link

  • MacOS Sonoma 14.5
  • fnm 1.37.0
  • gem 3.0.3.1 (default version for Sonoma 14.5)
$ gem list --local
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-darwin23/rbconfig.rb:21: warning: Insecure world writable dir /Users/simon/.local/state/fnm_multishells in PATH, mode 040777

*** LOCAL GEMS ***

[deleted]
@Schniz
Copy link
Owner

Schniz commented Jun 2, 2024

interesting, maybe we should make sure that the permissions are user only in ~/.local/share/fnm_multishells :thumbs:

Schniz added a commit that referenced this issue Jun 2, 2024
fixes #1158, hopefully.
when we create the multishell path, we will ensure only the owner can read and write to it.
@Schniz Schniz linked a pull request Jun 2, 2024 that will close this issue
@Schniz
Copy link
Owner

Schniz commented Jun 2, 2024

@simonwhitaker if you do chmod 700 ~/.local/share/fnm_multishells does it fix it? #1159 will solve it if that's the case but I can't reproduce the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants