Umm...(not sure this will work),
alias das="su -c $1"
das "mv blah /usr/local"
Well, it's close...*shrugs*
-LG
On Sat, 23 Dec 2000, christopher j bottaro wrote:
> i'm logged in as a normal user most of the time on my linux machine, but i
> download and install a lot of stuff too. this requires me to switch back and
> forth between superuser and my normal login. my friend told me that at his
> work, they have a das (do a superuser) alias on their play linux boxes. he
> says it works like this...
> das mv blah /usr/local
> 1) changes to su
> 2) executes "mv blah /usr/local" as su
> 3) exits from su
>
> can some show me how to write such an alias (or even shell script?)? thanks
> a bunch.
>
>
>
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
>
-- Generated Signature --
File cabinet:
A four drawer, manually activated
trash compactor.
-- End Sig --
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list