On 10/5/06, Silviu Marin-Caea <[EMAIL PROTECTED]> wrote:
On Thursday 05 October 2006 17:26, Silviu Marin-Caea wrote:
> Am nevoie sa fac un scriptuletz care sa faca asta:
>
> xhost +
> su - oracle  ### aici nu vreau sa mai ceara parola
> export DISPLAY=:0
> cd product/10gr2/devsuite/bin
> ./rwbuilder.sh

De fapt asa:

xhost +localhost
su - oracle --command "export DISPLAY...."


man sudo && man sudoers

editezi /etc/sudoers cu visudo
si adaugi o linie:
----
gigel numeleCalculatoruluiMeu = (oracle) NOPASSWD: /bin/sh -c "export
lalala..."
----
apoi rulezi cam asa, logat fiind ca si gigel
sudo -u oracle /bin/sh -c "export lalala..."


--
...and justice for all...

_______________________________________________
RLUG mailing list
[email protected]
http://lists.lug.ro/mailman/listinfo/rlug

Raspunde prin e-mail lui