Re: sudo and globbing

2016-01-08 Thread Eric Furman
ry 8, 2016 11:52:32 AM GMT+01:00, Jiri B wrote: > >On Fri, Jan 08, 2016 at 12:04:15PM +0200, Alexey Kurinnij wrote: > >> And what about difference? Explain please. > >> > >> > > I discovered an article about sudo and globbing[1] and > >>

Re: sudo and globbing

2016-01-08 Thread Todd C. Miller
You are comparing two very different versions of sudo. The sudo that used to ship with OpenBSD is version 1.7.2p8 which is rather ancient. On Linux you probably have some variant of sudo 1.8.x. Newer versions of sudo escape spaces in the command run via "sudo -s" whereas the ancient 1.7.2p8 does

Re: sudo and globbing

2016-01-08 Thread Alexander Hall
On January 8, 2016 11:52:32 AM GMT+01:00, Jiri B wrote: >On Fri, Jan 08, 2016 at 12:04:15PM +0200, Alexey Kurinnij wrote: >> And what about difference? Explain please. >> >> > > I discovered an article about sudo and globbing[1] and >> > > there's diff

Re: sudo and globbing

2016-01-08 Thread Raf Czlonka
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/loca

Re: sudo and globbing

2016-01-08 Thread ludovic coues
2016-01-08 11:52 GMT+01:00 Jiri B : > > So the question is: why does same command on equally "restricted" dir > path gets different output - why on openbsd does '*' get expanded > immediatelly but on linux is it taken into account somehow by sudo (?)... > > j. > you put a dash between the shell an

Re: sudo and globbing

2016-01-08 Thread Peter Hessler
On 2016 Jan 08 (Fri) at 05:52:32 -0500 (-0500), Jiri B wrote: :On Fri, Jan 08, 2016 at 12:04:15PM +0200, Alexey Kurinnij wrote: :> And what about difference? Explain please. :> :> > > I discovered an article about sudo and globbing[1] and :> > > there's difference

Re: sudo and globbing

2016-01-08 Thread Jiri B
On Fri, Jan 08, 2016 at 12:04:15PM +0200, Alexey Kurinnij wrote: > And what about difference? Explain please. > > > > I discovered an article about sudo and globbing[1] and > > > there's difference how it does work on Linux and OpenBSD. > > > > http:/

Re: sudo and globbing

2016-01-08 Thread Alexey Kurinnij
And what about difference? Explain please. On Thu, Jan 7, 2016 at 7:03 PM, Jiri B wrote: > On Thu, Jan 07, 2016 at 11:43:14AM -0500, Jiri B wrote: > > I discovered an article about sudo and globbing[1] and > > there's difference how it does work on Linux and OpenBSD. > &g

Re: sudo and globbing

2016-01-07 Thread Jiri B
On Thu, Jan 07, 2016 at 11:43:14AM -0500, Jiri B wrote: > I discovered an article about sudo and globbing[1] and > there's difference how it does work on Linux and OpenBSD. I forgot to put the url http://zurlinux.com/?p=2244 > - openbsd > > # su -s /usr/local/bin/bas