New answers tagged

0 votes

Grant a user sudo powers to start/stop/etc a systemd service w/o sudo password

I had to do config using group of that user - Login and take root sudo; then run below command > sudo visudo Then add below lines at the end of the opened file and save - %[group] ALL=([username]) ...
Akshay's user avatar
  • 1
0 votes

Why can I connect to the docker daemon with sudo, but not root?

sudo resets environment. su does not. Your user has evidently set the DOCKER_HOST variable to unix:///run/user/1000/docker.sock or has it in Docker configuration file. grepfor docker.sock may be a ...
vidarlo's user avatar
  • 9,112

Top 50 recent answers are included