thanks,
i sort of see what you mean, this might explian why kdesu doesn't do it, 
though
#su
<password>
#./somescript
does work without the dash, unfortunately, it's not a reason that might 
explain why a cron job run as root (setup with webmin) that calls the script 
would fail, would it?
i have wondered if the problem lies with calling one script - urpmi - from 
another, but since my knowledge of perl is slightly less than my knowledge of 
bash i.e. zero i couldn't possibly investigate this!

bascule

p.s. is that 'defanged' thing some sort of unixy joke, or is quoting scripts 
in mails a genuine security risk?

On Thursday 15 Nov 2001 12:05 am, you wrote:
> Try su - -c 'command'  Normal su (and kdesu I think) inherit the current
> user environment, the dash tells it to spawn a new one based on root.
> There are differences in the default path etc when running programs in
> this way which can cause obscure failures.
>
> BillK
>
> 

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to