Re: setuid script

2009-03-25 Thread cesarino vinh
This is how I start my browser under GNOME: Alt+F2 then: gksu then I choose another user, and run iceweasel, I just want to make that "more comfortable" by just clicking "on something".

Re: setuid script

2009-03-22 Thread Douglas A. Tutty
On Sun, Mar 22, 2009 at 09:06:01PM +, Chris Davies wrote: > cesarino vinh wrote: > > I just wanted to run my browser with a different user, because it's > > safer :S > > Safer than what...? If javascript breaks out of the iceweasel sandbox, I'd like it to be in a separate user's sandbox.

Re: setuid script

2009-03-22 Thread Chris Davies
cesarino vinh wrote: > I just wanted to run my browser with a different user, because it's > safer :S Safer than what...? > How can I do that? I'm using wright now the "gksu" - and then run as user... > so I can't make a shell script to do that, and I don't want to modify the > browser's execut

Re: setuid script

2009-03-22 Thread cesarino vinh
Ok, thank you, so that's why it ignores it :) I just wanted to run my browser with a different user, because it's safer :S :( How can I do that? I'm using wright now the "gksu" - and then run as user... so I can't make a shell script to do that, and I don't want to modify the browser's executable

Re: setuid script

2009-03-22 Thread Jochen Schulz
cesarino vinh: > > why doesn't setuid work? The kernel ignores the SUID bit on all script files (anything which is run by a she-bang line). http://www.faqs.org/faqs/unix-faq/faq/part4/section-7.html J. -- I will not admit to failure even when I know I am terribly mistaken and have offended othe

setuid script

2009-03-22 Thread cesarino vinh
why doesn't setuid work? 1) I create a new user: useradd test -m -G audio passwd test ..ok 2) I'm logged in with another user [name: "user"], and I create a script [foo.sh]: #!/bin/sh whoami ..ok 3) I'm still logged in with another user ["user" - not the "test" user] and: chown test:test

Re: Problem with setuid script starting pppd

2003-07-18 Thread Vincent Lefevre
On Tue, Jun 10, 2003 at 18:25:11 +0200, Vincent Lefevre wrote: > I have written a setuid/setgid-root Perl script that does the > following: > > #!/usr/bin/suidperl -T > > use strict; > use warnings; > > $ENV{'PATH'} = '/usr/sbin:/usr/bin:/sbin:/bin'; > > @ARGV == 1 and my ($isp) = $ARGV[0] =~ /

Re: Problem with setuid script starting pppd

2003-06-22 Thread Vincent Lefevre
On Fri, Jun 13, 2003 at 15:27:16 +0100, Ben Kal wrote: > I too do not immediately understand that. It looks like the 'and die' part > of the statement > system '/usr/sbin/pppd', 'call', $isp and die; > is executed regardless of the real success or failure of the pppd call > when the script runs t

Re: Problem with setuid script starting pppd

2003-06-13 Thread Ben Kal
On 10 Jun 2003 Vincent Lefevre <[EMAIL PROTECTED]> wrote: > I have written a setuid/setgid-root Perl script that does the following: > > #!/usr/bin/suidperl -T > > use strict; > use warnings; > > $ENV{'PATH'} = '/usr/sbin:/usr/bin:/sbin:/bin'; > > @ARGV == 1 and my ($isp) = $ARGV[0] =~ /^([-0-9A-Z

Problem with setuid script starting pppd

2003-06-10 Thread Vincent Lefevre
I have written a setuid/setgid-root Perl script that does the following: #!/usr/bin/suidperl -T use strict; use warnings; $ENV{'PATH'} = '/usr/sbin:/usr/bin:/sbin:/bin'; @ARGV == 1 and my ($isp) = $ARGV[0] =~ /^([-0-9A-Za-z_]+)$/ or die "Usage: ppp-on \n"; $< = $>; # set real to effective u