* Patrick Leslie Polzer ([EMAIL PROTECTED]) wrote:
> On Fri, 6 Jan 2006 21:13:27 +0100
> Benjamin Andresen <Benjamin Andresen <[EMAIL PROTECTED]>> wrote:
> 
>  | I think this would only complicate stuff. And Arch has this very well
>  | working KISS philosophy.
> A simple
> 
> if [ ! $UID -eq 0 ]; then
>       echo "you must be root!"
>       exit
> fi
> 
> in front of each script would not complicate matters that much (even less
> if it would be made generic and sourced) and be quite handy IMO.

I still think that are 4 lines of code that aren't needed. But then
again, I'm a programmer for a living... So every time I don't have to
fiddle with something so the end-user can use it, is a relief.

Programming in the perfect world is so much fun.

>  | If it happens multiple times to you... Try to get some better shell
>  | settings to visualize when you are root or not.
> Some people like to never login as root and use sudo, for example.

It was just ment as an idea how to circumvent the problem
alternatively. When they used sudo to run a script, I suspect they got
enough rights. If they got enough rights, they wouldn't get the error
message.

I didn't want to forcely impose anything.

> Leslie

BR,
        Benny

Attachment: pgpjMtNI6oXUX.pgp
Description: PGP signature

_______________________________________________
arch mailing list
[email protected]
http://www.archlinux.org/mailman/listinfo/arch

Reply via email to