advertisement

Article:
  Learning the Mac OS X Terminal: Part 1
Subject:   A little nitpick
Date:   2001-12-18 06:16:46
From:   pmccann
Namely: the s in "sudo" is for *substitute* user, not *super*. You can just as well use sudo to run a command as any user (ie not just as root) by employing the -u flag on the command line.


For example, user "wilma" might enter:


sudo -u fred kill -9 1234


If wilma has been granted sufficient "power" in the /etc/sudoers file she'll be able to kill off Fred's CPU hogging processes using variants of the above command. As Apple have configured things out of the box, doing so would require Wilma to be an "administrator": all administrators have full sudo access, and no other users have any access via sudo. But you *can* set things up (very easily) so that the above command is the *only* rootly thing that Wilma can do. In summary, Wilma can substitute herself for Fred (only), to do (only certain things).


Cheers,
Paul


1 to 1 of 1
  1. Chris Stone photo A little nitpick
    2001-12-18 09:09:35  Chris Stone | O'Reilly AuthorO'Reilly Blogger [View]

1 to 1 of 1