Re: Problems of a desktop Linux distribution GUI sudo

2010-06-14 Thread Oron Peled
Allowing a desktop user to execute priviledged operations was tried over the years with different (wrong) approaches. First, let's summarize the old technical solutions and than explain their faults. Finally, we'll see what better approaches are being developed or deployed nowdays. All legacy solu

Re: Problems of a desktop Linux distribution GUI sudo

2010-06-14 Thread Elazar Leibovich
I don't understand. An executable can be signed or unsigned. Anyone can sign it, but the name of the signee would appear on it. If I see your script with your name on it, I can decide whether or not to execute it. What cannot happen in that case that I'll think your script is the update manager, si

Re: Problems of a desktop Linux distribution GUI sudo

2010-06-14 Thread Tzafrir Cohen
On Mon, Jun 14, 2010 at 09:22:23PM +0300, Elazar Leibovich wrote: > On Mon, Jun 14, 2010 at 8:41 PM, Tzafrir Cohen wrote: > > > On Mon, Jun 14, 2010 at 08:12:43PM +0300, Elazar Leibovich wrote: > > > [snip] > > > > But I'm not interested with extra limitations. I want to allow the user > > > sudo

Re: Problems of a desktop Linux distribution GUI sudo

2010-06-14 Thread Elazar Leibovich
On Mon, Jun 14, 2010 at 8:41 PM, Tzafrir Cohen wrote: > On Mon, Jun 14, 2010 at 08:12:43PM +0300, Elazar Leibovich wrote: > [snip] > > But I'm not interested with extra limitations. I want to allow the user > > sudo'ing whatever he wishes, to allow any program to prompt for extra > > permissions,

Re: Problems of a desktop Linux distribution GUI sudo

2010-06-14 Thread Moish
On 14/06/2010 19:12, Elazar Leibovich wrote: The problem: In the current workflow for desktop linux, you need to routinely leverage the privilege of some GUI application. Those applications runs constantly in the background and might prompt the user to take action. We *want *those application t

Re: Problems of a desktop Linux distribution GUI sudo

2010-06-14 Thread Tzafrir Cohen
On Mon, Jun 14, 2010 at 08:12:43PM +0300, Elazar Leibovich wrote: > The problem: > In the current workflow for desktop linux, you need to routinely leverage > the privilege of some GUI application. Those applications runs constantly in > the background and might prompt the user to take action. > We

Re: Problems of a desktop Linux distribution GUI sudo

2010-06-14 Thread Elazar Leibovich
The problem: In the current workflow for desktop linux, you need to routinely leverage the privilege of some GUI application. Those applications runs constantly in the background and might prompt the user to take action. We *want *those application to constantly run in the background and prompt the

Re: Problems of a desktop Linux distribution GUI sudo

2010-06-14 Thread Tzafrir Cohen
On Mon, Jun 14, 2010 at 06:16:11PM +0300, Elazar Leibovich wrote: > On Mon, Jun 14, 2010 at 6:04 PM, Tzafrir Cohen wrote: > > > On Mon, Jun 14, 2010 at 05:47:36PM +0300, Elazar Leibovich wrote: > > > > > Again, sudo is super. > > > > Surely it's not. Super is a sudo replacement. > > http://package

Re: Problems of a desktop Linux distribution GUI sudo

2010-06-14 Thread Elazar Leibovich
On Mon, Jun 14, 2010 at 6:04 PM, Tzafrir Cohen wrote: > On Mon, Jun 14, 2010 at 05:47:36PM +0300, Elazar Leibovich wrote: > > > Again, sudo is super. > > Surely it's not. Super is a sudo replacement. > http://packages.debian.org/super It is hard to find an adjective which is not a debian package

Re: Problems of a desktop Linux distribution GUI sudo

2010-06-14 Thread Tzafrir Cohen
On Mon, Jun 14, 2010 at 05:47:36PM +0300, Elazar Leibovich wrote: > Again, sudo is super. Surely it's not. Super is a sudo replacement. http://packages.debian.org/super > I even considered a using it on some windows machine > which unfortunately lack this feature. It's the Ubuntu GUI for levera

Re: Problems of a desktop Linux distribution GUI sudo

2010-06-14 Thread Elazar Leibovich
On Mon, Jun 14, 2010 at 4:54 PM, Tzafrir Cohen wrote: > On Mon, Jun 14, 2010 at 05:36:33AM -0700, Elazar Leibovich wrote: > > 1) I'm not sure sniffing your keyboard and recognizing when you type your > > password is so easy, but I might be wrong. > > 2) I believe that there's some mechanism which

Re: Preserving Blanks in Parameters to Shell Script

2010-06-14 Thread Tzafrir Cohen
On Mon, Jun 14, 2010 at 11:02:11PM +1000, Amos Shapira wrote: > On 14 June 2010 22:48, Aharon Schkolnik wrote: > > On Monday, June 14, 2010, Noam Meltzer wrote: > >> use $@ instead of $* > > > > Does that work for you ? > > > > I still get the same results - the script treates file\ one as two > >

Re: Problems of a desktop Linux distribution GUI sudo

2010-06-14 Thread Tzafrir Cohen
On Mon, Jun 14, 2010 at 05:36:33AM -0700, Elazar Leibovich wrote: > 1) I'm not sure sniffing your keyboard and recognizing when you type your > password is so easy, but I might be wrong. > 2) I believe that there's some mechanism which prevents any other software > to mask graphically the authentic

Re: Preserving Blanks in Parameters to Shell Script

2010-06-14 Thread Shlomi Fish
On Monday 14 Jun 2010 15:27:43 Aharon Schkolnik wrote: > Hi. > > I want to write a script which will nice ffmpeg whatever parameters it is > given - ie: > > #!/bin/sh > > nice ffmpeg $* > > # > > > However, what if I have a file named `file one' > > > I would like to type `myscript -i file\

Re: Preserving Blanks in Parameters to Shell Script

2010-06-14 Thread Herouth Maoz
Quoting Noam Meltzer : use $@ instead of $* But put it in quotes: "$@". Otherwise the effect is lost. Herouth ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il

Re: Preserving Blanks in Parameters to Shell Script

2010-06-14 Thread Aharon Schkolnik
On Monday, June 14, 2010, Noam Meltzer wrote: > I'm sorry. I tend to forget why I hate shell scripts. > Use "$@" instead. (checked it this time, it works ;-) ) Yep - looks like nice ffmpeg "$@" does the trick. Thanks ! > > 2010/6/14 Aharon Schkolnik > > > On Monday, June 14, 2010, Noam Melt

Re: Preserving Blanks in Parameters to Shell Script

2010-06-14 Thread Noam Meltzer
I'm sorry. I tend to forget why I hate shell scripts. Use "$@" instead. (checked it this time, it works ;-) ) 2010/6/14 Aharon Schkolnik > On Monday, June 14, 2010, Noam Meltzer wrote: > > use $@ instead of $* > > Does that work for you ? > > I still get the same results - the script treates fil

Re: Preserving Blanks in Parameters to Shell Script

2010-06-14 Thread Amos Shapira
On 14 June 2010 22:48, Aharon Schkolnik wrote: > On Monday, June 14, 2010, Noam Meltzer wrote: >> use $@ instead of $* > > Does that work for you ? > > I still get the same results - the script treates file\ one as two > parameters - file and one. 1. Try switching to #!/bin/bash - I think the "$@

Re: Preserving Blanks in Parameters to Shell Script

2010-06-14 Thread Aharon Schkolnik
On Monday, June 14, 2010, Noam Meltzer wrote: > use $@ instead of $* Does that work for you ? I still get the same results - the script treates file\ one as two parameters - file and one. > > On Mon, Jun 14, 2010 at 3:27 PM, Aharon Schkolnik wrote: > > Hi. > > > > I want to write a script

Re: Problems of a desktop Linux distribution GUI sudo

2010-06-14 Thread Elazar Leibovich
1) I'm not sure sniffing your keyboard and recognizing when you type your password is so easy, but I might be wrong. 2) I believe that there's some mechanism which prevents any other software to mask graphically the authentication dialog, so that if you're seeing the real authentication dialog - yo

Re: Preserving Blanks in Parameters to Shell Script

2010-06-14 Thread Noam Meltzer
use $@ instead of $* On Mon, Jun 14, 2010 at 3:27 PM, Aharon Schkolnik wrote: > Hi. > > I want to write a script which will nice ffmpeg whatever parameters it is > given - ie: > > #!/bin/sh > > nice ffmpeg $* > > # > > > However, what if I have a file named `file one' > > > I would like to type

Preserving Blanks in Parameters to Shell Script

2010-06-14 Thread Aharon Schkolnik
Hi. I want to write a script which will nice ffmpeg whatever parameters it is given - ie: #!/bin/sh nice ffmpeg $* # However, what if I have a file named `file one' I would like to type `myscript -i file\ one output.whatever` I do not want to change what I type - the script needs to be a

Fwd: [Israel.pm] Next Rehovot.pm meeting: (15th June): Introduction to Perl 6

2010-06-14 Thread Shlomi Fish
-- Forwarded Message -- Subject: [Israel.pm] Next Rehovot.pm meeting: (15th June): Introduction to Perl 6 Date: Monday 14 Jun 2010, 14:09:40 From: Gabor Szabo To: Perl in Israel , rehovot...@mail.pm.org, n...@perl.org.il hi all, The next meeting of the Rehovot Perl Mongers

Re: Problems of a desktop Linux distribution GUI sudo

2010-06-14 Thread Tzafrir Cohen
On Mon, Jun 14, 2010 at 02:52:30AM -0700, Elazar Leibovich wrote: > I think you're missing the very fundamental problem I was discussing. > Sudo is great, having the default user in the admin group, enabling him to > sudo everything is even better. But this applies only when working with the > CLI.

Re: Problems of a desktop Linux distribution GUI sudo

2010-06-14 Thread Shlomi Fish
On Monday 14 Jun 2010 12:52:30 Elazar Leibovich wrote: > I think you're missing the very fundamental problem I was discussing. > Sudo is great, having the default user in the admin group, enabling him to > sudo everything is even better. But this applies only when working with the > CLI. > However,

Re: Problems of a desktop Linux distribution GUI sudo

2010-06-14 Thread Elazar Leibovich
I think you're missing the very fundamental problem I was discussing. Sudo is great, having the default user in the admin group, enabling him to sudo everything is even better. But this applies only when working with the CLI. However, when using a GUI system, and administrating your system using th

Re: gcc-4.5.0 Success Story with Freecell Solver

2010-06-14 Thread Shlomi Fish
On Monday 14 Jun 2010 02:30:24 Amos Shapira wrote: > There was an item on slashdot about LLVM project, have you tested it? > LLVM is http://en.wikipedia.org/wiki/Low_Level_Virtual_Machine . I've learned about it from many places, including fellow developers on IRC. I've tested it with Freecell

Re: Problems of a desktop Linux distribution GUI sudo

2010-06-14 Thread Tzafrir Cohen
On Mon, Jun 14, 2010 at 08:49:21AM +0300, Elazar Leibovich wrote: > When using my Ubuntu I used to make the following pattern, whenever an > update symbol showed up in the "taskbar" above (in gnome it's the upper > panel), I clicked on it, entered my password to sudo up the privileges of > the upda

Re: Problems of a desktop Linux distribution GUI sudo

2010-06-14 Thread Oleg Goldshmidt
2010/6/14 Elazar Leibovich : > Alas, in the latest version of Ubuntu the sudoers file says > %admin ALL=(ALL) ALL > and the default user is indeed in the admin group. > Is that really a problem (I'm probably not the only one who noticed it)? I suppose Ubuntu assumes, probably correctly for its ta