You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sudo mkdir ~/perms-test
sudo touch ~/perms-test/file
sudo code-alpha --user-data-dir ~/root-data-dir ~/perms-test
# edit and save `file` in vscode
Known limitations
Files can only be saved if the root user has write access, you can check file permissions using ls -la. Example output gives -rw-r--r-- which means user read/write, group read, all read. If the 'daniel' user owns this file, 'root' will be able to read but not save.
Running sudo code-alpha --user-data-dir ~/root-data-dir ~/perms-test results in
It is recommended to start vscode as a normal user. To run as root, you must specify an alternate user data directory with the --user-data-dir argument.
sudo code-alpha --user-data-dir=~/root-data-dir ~/perms-test, however, works.
Test plan for #3068
Basic test case
Known limitations
ls -la
. Example output gives-rw-r--r--
which means user read/write, group read, all read. If the 'daniel' user owns this file, 'root' will be able to read but not save.The text was updated successfully, but these errors were encountered: