aliyun / aliyun/SimAI

Permission denied when creating /etc/astra-sim directory

Open
#200 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.2k
Forks
184
Avg merge
13h 4m
Merged PRs (30d)
1

Description

Hi,

When running the command ./scripts/build.sh -c analytical, I encountered the following error:

mkdir: cannot create directory ‘/etc/astra-sim’: Permission denied

It seems like the script is trying to create a directory under /etc/(presumably to store configuration files?). However, as a regular user, I don't have permission to write to /etc/, so the directory creation failed.
That said, the overall build command still seemed to complete successfully.

My questions are:​

  1. Was the intention of the script to write configuration files or create directories under /etc/astra-sim?
  2. Since the directory creation failed due to permission issues, could this lead to any missing functionality or misconfiguration later on?
  3. Is there a recommended way to run this script (e.g., specifying a different config location, or using sudo) to avoid this issue while still ensuring everything works as intended?

Thanks in advance for your help!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running ./scripts/build.sh -c analytical and reading scripts/build.sh around the creation of /etc/astra-sim. Determine whether that directory is required for the build or later functionality, and identify the intended non-root configuration path. Done means the command no longer produces an inappropriate permission failure and its resulting configuration behavior is verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.