Installer refuses an older Linux Home whose files are group-writable or owned by root
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start with install_transaction.rs, focusing on check_file and check_directory_mode. Trace how the installer handles group/other write permissions and root-owned files, then check the installer tests for those cases. Done means the installer repairs unsafe permissions on user-owned files and folders and reports one chown command for root-owned files.
索引モデルが issue の本文から書いたものです。
説明
Problem
On a Linux or Jetson computer that already has an older ElastOS install, the 2.0.0 installer can stop before it changes anything:
Error: installation file is unsafe: /home/<user>/.local/bin/elastos is accessible to other users; fix with: chmod go-w '/home/<user>/.local/bin/elastos'
Error: This installation was not changed
After that file is fixed it names the next one (for example ~/.local/share/elastos/components.json). If chmod answers Operation not permitted, some ElastOS files belong to root, usually from an earlier install run with sudo.
Seen 2 Nov 2026 on a Jetson whose Home was created by a March 2026 release. New installs are not affected: the installer now creates its files owner-only, and fresh installs on default Ubuntu settings pass.
Workaround
Run as the user who owns the Home, not as root:
sudo chown -R "$(id -un)": ~/.local/share/elastos ~/.local/bin/elastos
chmod -R go-w ~/.local/share/elastos ~/.local/bin/elastos
curl -fsSL https://elastos.elacitylabs.com/install.sh | bash
sudo is only for giving the files back to you. Do not delete ~/.local/share/elastos: it holds this Home's identity and keys.
Fix (2.0.1)
The installer should repair group/other write on files and folders that are its own and owned by the user, and name root-owned ones with the one chown command, instead of refusing file by file. Check: install_transaction.rs check_file / check_directory_mode.
- 主要言語
- Rust
- スター
- 6
- フォーク
- 2
- 平均マージ
- 1日 3時間
- マージ済み PR(30日)
- 42
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
elastos/elastos-runtime のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
elastos/elastos-runtime#563 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
elastos/elastos-runtime#508 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
elastos/elastos-runtime#436 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
elastos/elastos-runtime#427 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
elastos/elastos-runtime#405 ·
メンテナーはふだん 1 日以内に返信
elastos/elastos-runtime の issue をすべて見る
似ている issue
-
bug good first issue help wanted linux macos testing
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
area: app type: test
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
bug priority: medium
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
storytold/photocraft#12706 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug priority-low to-agent
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
examples/dca and limit-order: swap always fails on the real Soroswap router (deadline equals now)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
sorocon-labs/sorocron#172 ·
メンテナーはふだん 1 日以内に返信