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

sudoをつけなくてもPBMを起動できるようにする #281

Merged
merged 8 commits into from
Dec 17, 2023

Conversation

jiikko
Copy link
Member

@jiikko jiikko commented Dec 16, 2023

#282

このPRでは、以下を含む

  • デバイスファイルの権限変更
  • パスワードなしでsudoが実行できないなら処理を止める

pbmenvはsudoを使っているはずなので、そっちもなんとかしないといけない。

@jiikko jiikko changed the title PBM起動時にsudoを不要にする sudoをつけずにPBM起動できるようにする Dec 17, 2023
@jiikko jiikko changed the title sudoをつけずにPBM起動できるようにする sudoをつけずにPBMを起動できるようにする Dec 17, 2023
@jiikko
Copy link
Member Author

jiikko commented Dec 17, 2023

pbmenvがsudoで使っているからそのせいで権限不足エラーになっちゃう

/home/pi/.rbenv/versions/3.1.2/lib/ruby/3.1.0/logger/log_device.rb:95:in `initialize': Permission denied @ rb_sysopen - /usr/share/pbm/v0.3.1/app.log (Errno::EACCES)
        from /home/pi/.rbenv/versions/3.1.2/lib/ruby/3.1.0/logger/log_device.rb:95:in `open'
        from /home/pi/.rbenv/versions/3.1.2/lib/ruby/3.1.0/logger/log_device.rb:95:in `open_logfile'
        from /home/pi/.rbenv/versions/3.1.2/lib/ruby/3.1.0/logger/log_device.rb:86:in `set_dev'
        from /home/pi/.rbenv/versions/3.1.2/lib/ruby/3.1.0/logger/log_device.rb:18:in `initialize'
        from /home/pi/.rbenv/versions/3.1.2/lib/ruby/3.1.0/logger.rb:390:in `new'
        from /home/pi/.rbenv/versions/3.1.2/lib/ruby/3.1.0/logger.rb:390:in `initialize'
        from app.rb:46:in `new'
        from app.rb:46:in `block in <main>'
        from /home/pi/.bundle/ruby/3.1.0/procon_bypass_man-e21bcd5d15c5/lib/procon_bypass_man.rb:150:in `instance_eval'
        from /home/pi/.bundle/ruby/3.1.0/procon_bypass_man-e21bcd5d15c5/lib/procon_bypass_man.rb:150:in `configure'

@jiikko jiikko marked this pull request as ready for review December 17, 2023 09:43
@jiikko jiikko changed the title sudoをつけずにPBMを起動できるようにする sudoをつけなくてもPBMを起動できるようにする Dec 17, 2023
@jiikko jiikko merged commit 9c56837 into master Dec 17, 2023
28 checks passed
@jiikko jiikko deleted the force-permissions branch December 17, 2023 09:51
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 this pull request may close these issues.

1 participant