Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

cannot exec linux-ssh-wrapper.sh in /tmp when noexec flag is set in fstab #1365

@spixx

Description

@spixx

Description

If the flag "noexec" set on the temporary folder Atom fails with error when pushing to github functionality is used:

fatal: cannot exec '/tmp/github-118227-39413-<random>/linux-ssh-wrapper.sh': Permission denied
fatal: unable to fork

Since neither a direct usage of /bin/(ba)sh <script> nor /bin/env (ba)sh <script> is used to execute the script the push fails.

Steps to Reproduce

  1. Have noexec on /tmp mount
  2. Use push function

Expected behavior:

Script to be run in a folder specific to Atom (.atom/tmp chmod 700) or a simple way to set the tmp folder in the interface (?).

Actual behavior:

Fails with error described.

Reproduces how often:

100%

Versions

apm 1.18.12
npm 3.10.10
node 6.9.5 x64
atom 1.23.2
python 2.7.5
git 1.8.3.1
3.10.0-693.21.1.el7.x86_64 #1 SMP Wed Mar 7 19:03:37 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Additional Information

I know this might be a bit out-of-scope but this seems to be a common usage of /tmp /var/tmp and /usr/tmp that is not really workable if one does not allow execute. Also if this fails information is left in the temporary folder.

I removed the prereq part since this is not really a direct atom issue (it will fail even in safe-mode).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions