Like KDE apps do, VSCode also has a way to save a file with root privileges without starting the app via sudo.
However once I try to save a file to /var/www that way, it fails and I get an invitation to "Retry as admin" again.
Is it fixable?
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
VSCode's "Retry as admin" function doesn't work in Debian 12
- dilberts_left_nut
- Administrator
- Posts: 5347
- Joined: 2009-10-05 07:54
- Location: enzed
- Has thanked: 13 times
- Been thanked: 66 times
Re: VSCode's "Retry as admin" function doesn't work in Debian 12
That is a poor approach.
If you want your user to have write permissions in /var/www you should set the permissions appropriately, probably as part of a group.
Check the existing permissions.
NOTE: You DO NOT want your web server user (www-data) to have write permissions to the webroot.
If you want your user to have write permissions in /var/www you should set the permissions appropriately, probably as part of a group.
Check the existing permissions.
NOTE: You DO NOT want your web server user (www-data) to have write permissions to the webroot.
AdrianTM wrote:There's no hacker in my grandma...
Re: VSCode's "Retry as admin" function doesn't work in Debian 12
I've trieddilberts_left_nut wrote: ↑2024-01-14 04:38 That is a poor approach.
If you want your user to have write permissions in /var/www you should set the permissions appropriately, probably as part of a group.
Check the existing permissions.
NOTE: You DO NOT want your web server user (www-data) to have write permissions to the webroot.
sudo adduser eugrus www-data
sudo chown -R root:www-data /var/www
Didn't change things.
- dilberts_left_nut
- Administrator
- Posts: 5347
- Joined: 2009-10-05 07:54
- Location: enzed
- Has thanked: 13 times
- Been thanked: 66 times
Re: VSCode's "Retry as admin" function doesn't work in Debian 12
What says:
Code: Select all
ls -l /var/www
AdrianTM wrote:There's no hacker in my grandma...
Re: VSCode's "Retry as admin" function doesn't work in Debian 12
Thank you!
Had to chmod g+w indeed!