> just22@poseidon:[xfe]> sudo su -c ls > su: no such login class: ls > > so basically sudo is parsing the "-c" option instead of passing it to > su.
No, it is not. If it were, the error message would come from sudo, not from su. > And, in any case, why the same command works in Linux? do they use a > modified/patched version? They use a different su(1). You might want to check the third example in the OpenBSD manual page for su.