On Tue 14/10 19:08, Miod Vallat wrote:
> > 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.

Todd, Miod,

My bad, two times (I misinterpreted the error message and I didn't read
the documentation, where the behavior is explicitly mentioned - into the
BUGS section of the su's man page, incidentally).

Thanks for your hints, that have pointed me in the right direction.

Cheers

-- 
Alessandro DE LAURENZIS
[mailto:just22....@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis

Reply via email to