Score:0

ubuntu 21.04: /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?

ph flag

I have bought a windows laptop yesterday, I installed fresh ubuntu 21.04. The I installed VS code from Ubuntu Software. Now the sudo command doesn't work in vscode integrated bash terminal. I get following error message:

sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?

but sudo works perfectly fine in ubuntu bash terminal but not just in vscode integrated terminal. How can I solve this issue?

cn flag
Why don't you answer the question asked? sudo only works when it is on a POSIX compliant filesystem. That is EXT generally. Not ntfs, or fat.
hr flag
Is `vscode` installed as a snap (rather than a traditional package) by any chance? See for example [\[snap\] Unable to run setuid/setgid commands from terminal](https://github.com/microsoft/vscode/issues/90725)
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.