On Thu, Jan 07, 2016 at 04:43:14PM GMT, Jiri B wrote:
> I discovered an article about sudo and globbing[1] and
> there's difference how it does work on Linux and OpenBSD.
AFAIK, globbing is done by shell and sudo doesn't take part in it.
> # su -s /usr/local/bin/bash - nobody
^
> [root@slot-1 ~]# su -s /bin/bash nobody
> [...]
> Could anybody explain the difference?
One thing I can see is that on OpenBSD, you run bash as a login shell
but not on Linux.
My guess is that your bash login shell options, or globbing options
between the systems in general, are the cause of the above.
Regards,
Raf