in reply to Re^5: OpenSSH and multiple users
in thread OpenSSH and multiple users
FreeBSD "su" interprets the "-c" option as "class".
Explicitly invoking sh should do the trick: su admin sh -c 'show status'
Reading the fine manual suggests that the problem of "-c" could also be the order of arguments: su -c 'show status' admin has "-c" in front of the login parameter. Moving "-c" after the login parameter, as shown in the third example, should work: su admin -c 'show status'.
Please note: everything posted here is untested, I currently have no FreeBSD machine to test.
Alexander
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: OpenSSH and multiple users
by judgemstr (Novice) on Jan 07, 2016 at 18:25 UTC | |
by salva (Canon) on Jan 07, 2016 at 18:53 UTC |