This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug runtime/4357] staprun should print more obvious errors when not run as root


------- Additional Comments From dsmith at redhat dot com  2007-08-16 18:19 -------
With the new staprun security model (see bug 4523 for details), staprun no
longer requires root access.  However, you must be either root, a member of the
'stapdev' group, or a member of the 'stapusr' group to run staprun.

If you aren't root or a member of the 'stapdev' or 'stapusr' groups, then you
will get the following error message when starting staprun (in this example the
'news' user is used, which isn't a member of 'stapdev' or 'stapusr'):

$ sudo runuser -c "staprun stap_open.ko" news
ERROR: you must be a member of either group "stapdev" or group "stapusr"

staprun [-v]  [-c cmd ] [-x pid] [-u user]
        [-A|-L] [-b bufsize] [-o FILE] MODULE [module-options]
-v              Increase verbosity.
-c cmd          Command 'cmd' will be run and staprun will
                exit when it does.  The '_stp_target' variable
                will contain the pid for the command.
-x pid          Sets the '_stp_target' variable to pid.
-o FILE         Send output to FILE.
-b buffer size  The systemtap module specifies a buffer size.
                Setting one here will override that value.  The
                value should be an integer between 1 and 64
                which be assumed to be the buffer size in MB.
                That value will be per-cpu in bulk mode.
-L              Load module and start probes, then detach.
-A              Attach to loaded systemtap module.
MODULE can be either a module name or a module path.  If a
module name is used, it is looked for in the following
directory: /lib/modules/`uname -r`/systemtap

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://sourceware.org/bugzilla/show_bug.cgi?id=4357

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]