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

Remote-Container uses incorrect umask 0022 and file permission 644 with vscode(non root) user. #6118

Closed
Uguudei opened this issue Jan 3, 2022 · 4 comments
Assignees
Labels
containers Issue in vscode-remote containers feature-request Request for new features or functionality

Comments

@Uguudei
Copy link

Uguudei commented Jan 3, 2022

VS Code remote-container is using an umask 0022. Is this expected behavour?

I am using the vscode user in the remote container. When I create a file from python code or terminal, file permission is set as 644/umask 0022/. I want files to have permission 664 /umask 0002/. Since I am not using root user, shouldn't the vscode use umask 0002? It seems like a bug.

In my case, files need to have permission 664 in the mounted directory which is shared among multiple users. I have created file in container volume and mounted directory. Both cases have permission 644.

  • VSCode Version: 1.63.2
  • Local OS Version: Windows 10
  • Remote OS Version: Ubuntu 20.04
  • Remote Extension/Connection Type: SSH
  • Logs:

Steps to Reproduce:

  1. Open repo in Remote-SSH
  2. Reopen in Folder in Container

Does this issue occur when you try this locally?: No
Does this issue occur when you try this locally and all extensions are disabled?: No

@github-actions github-actions bot added the containers Issue in vscode-remote containers label Jan 3, 2022
@chrmarti
Copy link
Contributor

chrmarti commented Jan 3, 2022

We could read the umask when we probe the environment variables and set it for launching the VS Code Server. That would require you to set it in /etc/profile or the user's ~/.profile / ~/.bash_profile scripts. Marking as feature request. (Related for implementation: nodejs/node#32321)

@chrmarti chrmarti self-assigned this Jan 3, 2022
@chrmarti chrmarti added the feature-request Request for new features or functionality label Jan 3, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Apr 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
containers Issue in vscode-remote containers feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

3 participants
@Uguudei @chrmarti and others