[Bug 250405] su -c: inaccurate manpage

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Oct 16 20:04:52 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=250405

            Bug ID: 250405
           Summary: su -c: inaccurate manpage
           Product: Base System
           Version: 12.1-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: uzsolt at uzsolt.hu

The su(1) writes:
  The options are as    follows:

     -c class
             Use the settings of the specified login class.  The login class
             must be defined in login.conf(5).  Only allowed for the super-
             user.


But in the examples:
     su -m operator -c poweroff
            Starts a shell as user operator, and runs the command poweroff.

So the "-c" doesn't specify the login class instead with it can run a command
as an another user.

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


More information about the freebsd-bugs mailing list