admin管理员组

文章数量:1123703

I have rust installed for a particular user /home/user1/.cargo. But to run the binary that's been been created using cargo build, I need superuser privileges. So, I thought to run like sudo -E cargo run, but this results in an error cargo: No file or directory. Why sudo -E option doesn't preserve the cargo related environment variables.

本文标签: linuxpreserve rust cargo environment variables while running with superuser privilegesStack Overflow