Skip to main content

How doesis sudo intended to be used?

I've tried messing around with configuring sudo before, but I haven't had too much luck with it. How is it different from su -l -c "x"? It seems that via the configuration file, one can make it so a user can only have access to certain commands and more. I always thought of sudo as a way of one-lining a command as another user or group. Since distros like Ubuntu and Mint make it easy by essentially giving the main user easy access to root via a password, I'm not really sure what its intended use is.

How do I add a user to the sudo file, giving them rights to only run certain commands at root? I also don't want to open up any security holes.

How does sudo intended to be used?

I've tried messing around with configuring sudo before, but I haven't had too much luck with it. How is it different from su -l -c "x"? It seems that via the configuration file, one can make it so a user can only have access to certain commands and more. I always thought of sudo as a way of one-lining a command as another user or group. Since distros like Ubuntu and Mint make it easy by essentially giving the main user easy access to root via a password, I'm not really sure what its intended use is.

How do I add a user to the sudo file, giving them rights to only run certain commands at root? I also don't want to open up any security holes.

How is sudo intended to be used?

I've tried configuring sudo before, but I haven't had too much luck with it. How is it different from su -l -c "x"? It seems that via the configuration file, one can make it so a user can only have access to certain commands and more. I always thought of sudo as a way of one-lining a command as another user or group. Since distros like Ubuntu and Mint make it easy by essentially giving the main user easy access to root via a password, I'm not really sure what its intended use is.

How do I add a user to the sudo file, giving them rights to only run certain commands at root? I also don't want to open up any security holes.

improve title (although still could use work)
Link
strugee
  • 15.4k
  • 18
  • 81
  • 121

How does sudo workintended to be used?

Tweeted twitter.com/#!/StackUnix/status/58320850130173952
Source Link
Naftuli Kay
  • 41.5k
  • 94
  • 246
  • 322

How does sudo work?

I've tried messing around with configuring sudo before, but I haven't had too much luck with it. How is it different from su -l -c "x"? It seems that via the configuration file, one can make it so a user can only have access to certain commands and more. I always thought of sudo as a way of one-lining a command as another user or group. Since distros like Ubuntu and Mint make it easy by essentially giving the main user easy access to root via a password, I'm not really sure what its intended use is.

How do I add a user to the sudo file, giving them rights to only run certain commands at root? I also don't want to open up any security holes.