- Notifications
You must be signed in to change notification settings - Fork6.1k
Open file in editor with sudo#5212
-
Sometimes i need to edit a file with sudo (Example: Adding new reverse proxy into caddy file). |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 4 comments 6 replies
-
Hmm 🤔 I'm not sure to be honest. I foundthis but I don't think it's much different from your current workaround |
BetaWas this translation helpful?Give feedback.
All reactions
-
cc@code-asher ideas? |
BetaWas this translation helpful?Give feedback.
All reactions
-
I am not aware of any more convenient workarounds but I think desktop VS Code handles this by asking for the password so maybe we can enable that behavior in code-server. |
BetaWas this translation helpful?Give feedback.
All reactions
👍 2
-
@code-asher This would be a nice solution! |
BetaWas this translation helpful?Give feedback.
All reactions
-
@code-asher Hi, i thought to ask if there any new updates regarding this request? |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
No updates; we have not looked into this. If we can reproduce in Codespaces it could be nice to raise the issue upstream. |
BetaWas this translation helpful?Give feedback.
All reactions
👍 3
-
Hi there! Any luck on this? I am connected to Ubuntu 22.04 via remote VSCode, I am trying to edit files for other user, which I don't want to change their file permission for me to edit their files normally. As of now I use Vim when editing files andSave as Root in Remote - SSH which can be hassle sometimes. |
BetaWas this translation helpful?Give feedback.
All reactions
-
Also checking in on this… would be a great addition to code-server. 🙏 |
BetaWas this translation helpful?Give feedback.
All reactions
-
Agree, it would make remote tweaks to service and OS files insanely easy! |
BetaWas this translation helpful?Give feedback.
All reactions
-
Incase anyone else is looking to do the same you can run |
BetaWas this translation helpful?Give feedback.