Re: exit usage

2004-01-08 Thread Florian Ernst
Hello 'dman'! OK, now replying publicly so nobody will delve further into details about my dumbness anymore... ;) On Thu, Jan 08, 2004 at 08:45:50AM -0500, Derrick 'dman' Hudson wrote: On Thu, Jan 08, 2004 at 11:33:10AM +0100, Florian Ernst wrote: | Can you please hit me gently with a clue bat? [F

Re: exit usage

2004-01-08 Thread Rick Weinbender
Florian Ernst wrote: > Hello Jan! > > -> su -c and sudo for executing a script as a different user > On Thu, Jan 08, 2004 at 03:17:37AM +0100, Jan Minar wrote: > >... definitively; but if you really wanted to know how to do it the > >Wrong Way: > > > >Generally, as a Unix process exec's another on

Re: exit usage

2004-01-08 Thread Derrick 'dman' Hudson
On Thu, Jan 08, 2004 at 11:33:10AM +0100, Florian Ernst wrote: | Hello Jan! | | -> su -c and sudo for executing a script as a different user | On Thu, Jan 08, 2004 at 03:17:37AM +0100, Jan Minar wrote: | >... definitively; but if you really wanted to know how to do it the | >Wrong Way: | > | >Gene

Re: exit usage

2004-01-08 Thread Jan Minar
On Thu, Jan 08, 2004 at 11:33:10AM +0100, Florian Ernst wrote: > On Thu, Jan 08, 2004 at 03:17:37AM +0100, Jan Minar wrote: > >... definitively; but if you really wanted to know how to do it the > >Wrong Way: -- translated in the plain English: Yes, this solves the problem, as stated in the origi

Re: exit usage

2004-01-08 Thread Florian Ernst
Hello Jan! -> su -c and sudo for executing a script as a different user On Thu, Jan 08, 2004 at 03:17:37AM +0100, Jan Minar wrote: ... definitively; but if you really wanted to know how to do it the Wrong Way: Generally, as a Unix process exec's another one (a child), the child can't mess with the

Re: exit usage

2004-01-07 Thread Jan Minar
On Thu, Jan 08, 2004 at 02:44:38AM +0100, Florian Ernst wrote: > On Wed, Jan 07, 2004 at 07:13:44PM -0600, Rick Weinbender wrote: > >I have a situation where I login as the root user, > >then 'su ' to a user with limited rights, > >and run a short script as this user. > >* > >My question is: > >In

Re: exit usage

2004-01-07 Thread Florian Ernst
Hello Rick! On Wed, Jan 07, 2004 at 07:13:44PM -0600, Rick Weinbender wrote: I have a situation where I login as the root user, then 'su ' to a user with limited rights, and run a short script as this user. * My question is: In the last line of my script, can I invoke some form of the exit command